diff options
author | Robert Collins <robertc@robertcollins.net> | 2009-03-08 13:04:19 +1100 |
---|---|---|
committer | Robert Collins <robertc@robertcollins.net> | 2009-03-08 13:04:19 +1100 |
commit | d6697aacf35a5fa0841319d94b405cf026b4d6e0 (patch) | |
tree | f7ad4ab133f3a2a1246ffacf03569e0740d7b785 /lib | |
parent | 34c91dd7b913bfd9bf8e22772398e1c10e000dcf (diff) | |
download | testscenarios-d6697aacf35a5fa0841319d94b405cf026b4d6e0.tar.gz |
Really test that TestWithScenarios succeeds with no scenarios.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/testscenarios/tests/test_testcase.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/testscenarios/tests/test_testcase.py b/lib/testscenarios/tests/test_testcase.py index f5c7cef..c5e85b9 100644 --- a/lib/testscenarios/tests/test_testcase.py +++ b/lib/testscenarios/tests/test_testcase.py @@ -29,7 +29,9 @@ class TestTestWithScenarios(unittest.TestCase): def test_pass(self): pass test = ReferenceTest("test_pass") - result = test.run() - + result = unittest.TestResult() + test.run(result) + self.assertTrue(result.wasSuccessful()) + self.assertEqual(1, result.testsRun) |