def METHOD_NAME(self):
    url = "%s/bnf_code?q=lor&format=json" % self.api_prefix
    response = self.client.get(url, follow=True)
    self.assertEqual(response.status_code, 200)
    content = json.loads(response.content)
    self.assertEqual(len(content), 5)
    self.assertEqual(content[0]["id"], "0202010D0")
    self.assertEqual(content[0]["name"], "Chlorothiazide")
    self.assertEqual(content[0]["type"], "chemical")
    self.assertEqual(content[3]["id"], "0202010D0AA")
    self.assertEqual(content[3]["name"], "Chloroth")
    self.assertEqual(content[3]["type"], "product")
    url = "%s/bnf_code?q=0202010D0BD&exact=true&format=json" % self.api_prefix
    response = self.client.get(url, follow=True)
    self.assertEqual(response.status_code, 200)
    content = json.loads(response.content)
    self.assertEqual(len(content), 1)
    self.assertEqual(content[0]["id"], "0202010D0BD")
    self.assertEqual(content[0]["name"], "Chlotride")
    self.assertEqual(content[0]["is_generic"], False)
    url = "%s/bnf_code?q=0202010D0bd&exact=true&format=json" % self.api_prefix
    response = self.client.get(url, follow=True)
    self.assertEqual(response.status_code, 200)
    content = json.loads(response.content)
    self.assertEqual(len(content), 1)
    self.assertEqual(content[0]["id"], "0202010D0BD")
    self.assertEqual(content[0]["name"], "Chlotride")
    self.assertEqual(content[0]["is_generic"], False)