How to use the serpextract.serpextract._serp_query_string function in serpextract

To help you get started, we’ve selected a few serpextract examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Parsely / serpextract / tests / View on Github external
def test_serp_query_string(self):
        serp_query_string = serpextract._serp_query_string
        url = ''
        expected = 'a=1&b=2'
        parts = urlparse(url)
        self.assertEqual(serp_query_string(parts), expected)