def METHOD_NAME(self):
    request = self.factory.get(API_BASE_PATH + "test.gov")
    request.user = self.user
    response = available(request, domain="test.gov")
    # has the right text in it
    self.assertContains(response, "available")
    # can be parsed as JSON
    response_object = json.loads(response.content)
    self.assertIn("available", response_object)