def test_exclude_skips(self):
     filtered_result = subunit.TestResultStats(None)
     result_filter = TestResultFilter(filtered_result, filter_skip=True)
     self.run_tests(result_filter)
     self.assertEqual(0, filtered_result.skipped_tests)
     self.assertEqual(2, filtered_result.failed_tests)
     self.assertEqual(3, filtered_result.testsRun)
Exemple #2
0
 def setUp(self):
     self.output = StringIO()
     self.result = subunit.TestResultStats(self.output)
     self.input_stream = BytesIO()
     self.test = subunit.ProtocolTestCase(self.input_stream)