def tearDown(self):
    self.delete_objects(PhoneNumber.objects.filter(domain=self.domain))
    self.delete_objects(SQLMobileBackend.objects.filter(domain=self.domain))
    SQLMobileBackendMapping.objects.filter(domain=self.domain).delete()
    self.domain_obj.delete()
def tearDown(self):
    self.delete_objects(PhoneNumber.objects.filter(domain=self.domain))
    self.delete_objects(SQLMobileBackend.objects.filter(domain=self.domain))
    SQLMobileBackendMapping.objects.filter(domain=self.domain).delete()
    self.domain_obj.delete()