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

        self.assertEqual(
            url.remove(name=u"foo", value=u"1"),
            URL.from_text(u"https://example.com/a/b/?bar=2&foo=3")
        )

        self.assertEqual(
            url.remove(name=u"foo", limit=1),
            URL.from_text(u"https://example.com/a/b/?bar=2&foo=3")
        )

        self.assertEqual(
            url.remove(name=u"foo", value=u"1", limit=0),
            URL.from_text(u"https://example.com/a/b/?foo=1&bar=2&foo=3")
        )

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