def test_queryRemove(self):
        """
        L{URL.remove} removes all instances of a query parameter.
        """
        url = URL.fromText(u"https://example.com/a/b/?foo=1&bar=2&foo=3")
        self.assertEqual(
            url.remove(u"foo"),
            URL.fromText(u"https://example.com/a/b/?bar=2")
        )

        L{URL.remove} removes all instances of a query parameter.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_url.py