Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

Commit

Permalink
add __main__ section
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Hammel committed Jul 20, 2012
1 parent 1befa48 commit 689c19a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions dzclient/tests/test_datazilla_request.py
Original file line number Original file line Diff line number Diff line change
@@ -1,12 +1,9 @@
from unittest import TestCase import unittest

from mock import patch from mock import patch

from dzclient import DatazillaRequest, DatazillaResult from dzclient import DatazillaRequest, DatazillaResult





class DatazillaRequestTest(unittest.TestCase):
class DatazillaRequestTest(TestCase):
def test_init_with_date(self): def test_init_with_date(self):
"""Can provide test date on instantiation.""" """Can provide test date on instantiation."""
req = DatazillaRequest( req = DatazillaRequest(
Expand Down Expand Up @@ -144,3 +141,6 @@ def test_send(self,
header['Content-type'], header['Content-type'],
'application/x-www-form-urlencoded', 'application/x-www-form-urlencoded',
) )

if __name__ == '__main__':
unittest.main()
9 changes: 5 additions & 4 deletions dzclient/tests/test_datazilla_result.py
Original file line number Original file line Diff line number Diff line change
@@ -1,10 +1,8 @@
from unittest import TestCase import unittest

from dzclient import DatazillaResult from dzclient import DatazillaResult





class DatazillaResultTest(unittest.TestCase):
class DatazillaResultTest(TestCase):
def test_init_with_results(self): def test_init_with_results(self):
"""Can initialize with a dictionary of results.""" """Can initialize with a dictionary of results."""
data = {"suite": {"test": [1, 2, 3]}} data = {"suite": {"test": [1, 2, 3]}}
Expand Down Expand Up @@ -54,3 +52,6 @@ def test_join_results(self):
"suite2": {"test2a": [4]}, "suite2": {"test2a": [4]},
} }
) )

if __name__ == '__main__':
unittest.main()

0 comments on commit 689c19a

Please sign in to comment.