Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)