'Two URLs decoded using L{URL.fromText} will be equal (C{==}) if they
decoded same URL string, and unequal (C{!=}) if they decoded different
strings.'

def test_equality(self):

    urlpath = URL.fromText(theurl)
    self.assertEqual(urlpath, URL.fromText(theurl))
    self.assertNotEqual(urlpath, URL.fromText(u'ftp://www.anotherinvaliddomain.com/foo/bar/baz/?zot=21&zut'))
