def METHOD_NAME(self):
    """Test that an or query is interpreted correctly since we use an
    internal or query to filter out deleted records"""
    for i in range(1, 3):
        self._submit_transport_instance(i)
    # record 0: does NOT have the 'transport/loop_over_transport_types_freq
    #           uency/ambulance/frequency_to_referral_facility' field
    # record 1: 'transport/loop_over_transport_types_frequency/ambulance/fr
    #           equency_to_referral_facility': 'daily'
    # record 2: 'transport/loop_over_transport_types_frequency/ambulance/fr
    #           equency_to_referral_facility': 'weekly'
    params = {
        'query':
        '{"$or": [{"transport/loop_over_transport_types_frequency/ambulanc'
        'e/frequency_to_referral_facility": "weekly"}, {"transport/loop_ov'
        'er_transport_types_frequency/ambulance/frequency_to_referral_faci'
        'lity": "daily"}]}'}
    response = self.client.get(self.api_url, params)
    self.assertEqual(response.status_code, 200)
    data = json.loads(response.content)
    self.assertEqual(len(data), 2)
    # check that blank params give us all our records i.e. 3
    params = {}
    response = self.client.get(self.api_url, params)
    self.assertEqual(response.status_code, 200)
    data = json.loads(response.content)
    self.assertEqual(len(data), 3)