def test_similarEqual(self):
        """
        URLs with equivalent components should compare equal.
        """
        u1 = URL.fromText('http://localhost/')
        u2 = URL.fromText('http://localhost/')
        self.assertEqual(u1, u2)

        URLs with equivalent components should compare equal.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_url.py