def assertPhoneNumbersEqual(self, phone1, phone2):
    for field in phone1._meta.fields:
        self.assertEqual(getattr(phone1, field.name), getattr(phone2, field.name))
def assertPhoneNumbersEqual(self, phone1, phone2):
    for field in phone1._meta.fields:
        self.assertEqual(getattr(phone1, field.name), getattr(phone2, field.name))