Пример #1
0
 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))
Пример #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)
Пример #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)
Пример #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)