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))
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)
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)