def test_differentNotEqual(self):
        """
        L{URL}s that refer to different resources are both unequal (C{!=}) and
        also not equal (not C{==}).
        """
        u1 = URL.from_text('http://localhost/a')
        u2 = URL.from_text('http://localhost/b')
        self.assertFalse(u1 == u2, "%r != %r" % (u1, u2))
        self.assertNotEqual(u1, u2)

        L{URL}s that refer to different resources are both unequal (C{!=}) and
        also not equal (not C{==}).
        
stackoverflow/venv/lib/python3.6/site-packages/hyperlink/test/test_url.py