def test_similarEqual(self):
        """
        URLs with equivalent components should compare equal.
        """
        u1 = URL.from_text('http://u@localhost:8080/p/a/t/h?q=p#f')
        u2 = URL.from_text('http://u@localhost:8080/p/a/t/h?q=p#f')
        self.assertEqual(u1, u2)

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