Exemple #1
0
    def test_query_string_params_with_param_value_being_non_empty_list(self):
        request_mock = Mock()
        request_mock.args = {"param": ["a", "b"]}

        actual_query_string = Service._query_string_params(request_mock)
        self.assertEquals(actual_query_string, {"param": "b"})
Exemple #2
0
    def test_query_string_params_with_empty_params(self):
        request_mock = Mock()
        request_mock.args = {}

        actual_query_string = Service._query_string_params(request_mock)
        self.assertEquals(actual_query_string, {})