def test_query_with_list(self, requests): requests.get = Mock(return_value=self.get_mock_response({})) client = SkyClient() table = resources.Table(name='users') client.query(table, []) requests.get.assert_called_once_with( "http://127.0.0.1:8585/tables/users/query", headers={'content-type': 'application/json'}, data='{"steps": []}' )