def test_urlparse(): inp = "https://google.com/foo/bar?a=b" expected = urllib.parse.urlparse(inp) assert filters.urlparse(inp) == expected