def test_lowercase(self): url = 'HTTP://WWW.fakeurl.COM/testdir' exp = 'http://www.fakeurl.com/testdir' self.assertEquals(normalizer._lowercase(url), exp) self.assertEquals(normalizer._lowercase(exp), exp) url = 'HTTP://WWW.fakeurl.COM/testdir/fILE.ext' exp = 'http://www.fakeurl.com/testdir/fILE.ext' self.assertEquals(normalizer._lowercase(url), exp)
def test_append_slash(self): url = 'HTTP://WWW.fakeurl.COM/testdir' exp = 'http://www.fakeurl.com/testdir' self.assertEquals(normalizer._lowercase(url), exp) self.assertEquals(normalizer._lowercase(exp), exp)