def test_test_result__pass(self): test_run = TestRun( analyzer_assigned_uuid="00000000-0000-0000-0000-000000000004") test_result = TestResult(test_run=test_run, relative_index=1) self.assertIn("00000000-0000-0000-0000-000000000004/1", unicode(test_result))
def test_microseconds_to_duration(self): obj = TestResult() obj.microseconds = self.microseconds self.assertEqual(self.duration, obj.duration)
def test_duration_to_microseconds(self): obj = TestResult() obj.duration = self.duration self.assertEqual(self.microseconds, obj.microseconds)