Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(4)  |  Import(0)
A class whose instances are single test cases.

By default, the test code itself should be placed in a method named
'runTest'.

If the fixture may be used for many test cases, create as
many test methods as are needed. When instantiating such a TestCase
subclass, specify in the constructor arguments the name of the test method
that the instance is to execute.
(more...)

src/p/o/porunga-HEAD/porunga/tests/test_utils_backports.py   porunga(Download)
class TestGetTotalSeconds(unittest.TestCase):
 
    def assertTotalSecondsEqual(self, timedelta, expected_seconds):
        result = get_total_seconds(timedelta)
        self.assertEqual(result, expected_seconds,

src/p/o/porunga-HEAD/porunga/tests/test_commands_test.py   porunga(Download)
class TestPorungaTestCommand(unittest.TestCase):
 
    def setUp(self):
        namespace = Namespace(quiet=True, all=False, lang='python', timeout=0)
        self.command = PorungaTestCommand()

src/p/o/porunga-0.9.3/porunga/tests/test_utils_backports.py   porunga(Download)
class TestGetTotalSeconds(unittest.TestCase):
 
    def assertTotalSecondsEqual(self, timedelta, expected_seconds):
        result = get_total_seconds(timedelta)
        self.assertEqual(result, expected_seconds,

src/p/o/porunga-0.9.3/porunga/tests/test_commands_test.py   porunga(Download)
class TestPorungaTestCommand(unittest.TestCase):
 
    def setUp(self):
        namespace = Namespace(quiet=True, all=False, lang='python', timeout=0)
        self.command = PorungaTestCommand()