Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_serp_query_string(self):
serp_query_string = serpextract._serp_query_string
url = 'http://www.something.com/?a=1#b=2'
expected = 'a=1&b=2'
parts = urlparse(url)
self.assertEqual(serp_query_string(parts), expected)