예제 #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)
예제 #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)
예제 #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)