def test_outcome_logs(self):
     test_id = self.getUniqueString()
     test = PlaceHolder(test_id, outcome=self.outcome)
     result = self.make_result_object()
     result.startTestRun()
     self.useFixture(AutopilotVerboseLogging())
     with FakeLogger() as log:
         test.run(result)
         self.assertThat(log.output, Contains(self.log % test_id))
Example #2
0
 def test_supplies_details(self):
     details = {'quux':None}
     test = PlaceHolder('foo', details=details)
     result = ExtendedTestResult()
     test.run(result)
     self.assertEqual(
         [('startTest', test),
          ('addSuccess', test, details),
          ('stopTest', test)],
         result._events)
Example #3
0
 def test_supplies_details(self):
     details = {'quux':None}
     test = PlaceHolder('foo', details=details)
     result = ExtendedTestResult()
     test.run(result)
     self.assertEqual(
         [('startTest', test),
          ('addSuccess', test, details),
          ('stopTest', test)],
         result._events)
Example #4
0
 def test_supplies_details(self):
     details = {"quux": None}
     test = PlaceHolder("foo", details=details)
     result = ExtendedTestResult()
     test.run(result)
     self.assertEqual([("startTest", test), ("addSuccess", test, details), ("stopTest", test)], result._events)