

def test_fill_DurationField_with_random_interval_in_miliseconds(self):
    duration_of_sleep_field = Person._meta.get_field('duration_of_sleep')
    self.assertIsInstance(duration_of_sleep_field, DurationField)
    duration_of_sleep = self.person.duration_of_sleep
    self.assertIsInstance(duration_of_sleep, timedelta)

dataset/ETHPy150Open vandersonmota/model_mommy/test/generic/tests/test_filling_fields.py DurationFieldsFilling.test_fill_DurationField_with_random_interval_in_miliseconds/original