@run_with_all_backends
def test_case_owner(self):
    with create_test_case(self.domain, 'participant', 'test') as case:
        number = PhoneNumber(owner_doc_type='CommCareCase', owner_id=case.case_id)
        owner = number.owner
        self.assertTrue(is_commcarecase(owner))
        self.assertEqual(owner.case_id, case.case_id)
@run_with_all_backends
def test_case_owner(self):
    with create_test_case(self.domain, 'participant', 'test') as case:
        number = PhoneNumber(owner_doc_type='CommCareCase', owner_id=case.case_id)
        owner = number.owner
        self.assertTrue(is_commcarecase(owner))
        self.assertEqual(owner.case_id, case.case_id)