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