def test_cloneUnchanged(self):
        """
        Verify that L{URL.replace} doesn't change any of the arguments it
        is passed.
        """
        urlpath = URL.fromText('https://x:1/y?z=1#A')
        self.assertEqual(
            urlpath.replace(urlpath.scheme,
                            urlpath.host,
                            urlpath.path,
                            urlpath.query,
                            urlpath.fragment,
                            urlpath.port),
            urlpath)
        self.assertEqual(
            urlpath.replace(),
            urlpath)

        Verify that L{URL.replace} doesn't change any of the arguments it
        is passed.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_url.py