def test_api_with_query(self):
        # query string
        query = '{"transport/available_transportation_types_to_referral_facility":"none"}'
        data = {'query': query}
        response = self.client.get(self.api_url, data)
        self.assertEqual(response.status_code, 200)
        d = dict_for_mongo_without_userform_id(self.xform.surveys.all()[0].parsed_instance)
        find_d = json.loads(response.content)[0]
        self.assertEqual(sorted(find_d, key=find_d.get), sorted(d, key=d.get))