def test_api_with_or_query(self):
        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)
Determines the verb/subcommand provided by the user.
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/main/tests/test_form_api.py/TestFormAPI.test_api_with_or_query--crossover with--dataset/ETHPy150Open letsencrypt/letsencrypt/certbot/cli.py/HelpfulArgumentParser.determine_verb