def METHOD_NAME(self):
    registry = create_registry_for_test(self.user, self.domain)
    registry.check_ownership(self.domain)
    with self.assertRaises(RegistryAccessDenied):
        registry.check_ownership('not the owner')