def test_uuid_with_other_params(self, mock_make_call): self.client.uuid = True requestor = APIRequestor(self.client, self.resources) requestor.params = {'test': '1234'} requestor.list_raw() params_arg = mock_make_call.call_args[0][-1] self.assertEqual(params_arg['test'], '1234') self.assertTrue('uuid' in params_arg)
def test_uuid_with_other_params(self, mock_make_call): self.client.uuid = True requestor = APIRequestor(self.client, self.resources) requestor.params = {'test': '1234'} requestor.list_raw() params_arg = mock_make_call.call_args[0][-1] self.assertEqual(params_arg['test'], '1234') self.assertTrue('uuid' in params_arg)
def test_uuid_not_set(self, mock_request): self.client.uuid = False requestor = APIRequestor(self.client, self.resources) requestor.params = {'test': '1234'} requestor.list_raw() mock_request.assert_called_once_with('/resources', 'GET', params={'test': '1234'})
def test_uuid_not_set(self, mock_request): self.client.uuid = False requestor = APIRequestor(self.client, self.resources) requestor.params = {'test': '1234'} requestor.list_raw() mock_request.assert_called_once_with('/resources', 'GET', params={'test': '1234'})