django.utils.six.moves.urllib_parse.parse_qsl

Here are the examples of the python api django.utils.six.moves.urllib_parse.parse_qsl taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

Example 1

Project: browsercompat
Source File: test_helpers.py
View license
    def mock_context(self, url):
        mock_request = mock.Mock(spec_set=['path', 'GET'])
        url_parts = urlparse(url)
        mock_request.path = url_parts.path
        mock_request.GET = OrderedDict(parse_qsl(url_parts.query))
        return {'request': mock_request}

Example 2

Project: browsercompat
Source File: test_helpers.py
View license
    def mock_context(self, url):
        mock_request = mock.Mock(spec_set=['path', 'GET'])
        url_parts = urlparse(url)
        mock_request.path = url_parts.path
        mock_request.GET = OrderedDict(parse_qsl(url_parts.query))
        return {'request': mock_request}