def test_duration_to_microseconds(self): obj = TestResult() obj.duration = self.duration self.assertEqual(self.microseconds, obj.microseconds)