def assertPhoneNumberDetails(self, case, phone_number, sms_backend_id, ivr_backend_id, verified, pending_verification, is_two_way, pk=None):
    v = self.get_case_phone_number(case)
    self.assertEqual(v.domain, case.domain)
    self.assertEqual(v.owner_doc_type, case.doc_type)
    self.assertEqual(v.owner_id, case.case_id)
    self.assertEqual(v.phone_number, phone_number)
    self.assertEqual(v.backend_id, sms_backend_id)
    self.assertEqual(v.ivr_backend_id, ivr_backend_id)
    self.assertEqual(v.verified, verified)
    self.assertEqual(v.pending_verification, pending_verification)
    self.assertEqual(v.is_two_way, is_two_way)
    self.assertEqual(v.contact_last_modified, case.server_modified_on)
    if pk:
        self.assertEqual(v.pk, pk)
def assertPhoneNumberDetails(self, case, phone_number, sms_backend_id, ivr_backend_id, verified, pending_verification, is_two_way, pk=None):
    v = self.get_case_phone_number(case)
    self.assertEqual(v.domain, case.domain)
    self.assertEqual(v.owner_doc_type, case.doc_type)
    self.assertEqual(v.owner_id, case.case_id)
    self.assertEqual(v.phone_number, phone_number)
    self.assertEqual(v.backend_id, sms_backend_id)
    self.assertEqual(v.ivr_backend_id, ivr_backend_id)
    self.assertEqual(v.verified, verified)
    self.assertEqual(v.pending_verification, pending_verification)
    self.assertEqual(v.is_two_way, is_two_way)
    self.assertEqual(v.contact_last_modified, case.server_modified_on)
    if pk:
        self.assertEqual(v.pk, pk)