Пример #1
0
 def test_strip_http_with_trailing_slash_no_strip(self):
     self.assertEqual(strip_http('www.example.com/'),
                      'www.example.com')
Пример #2
0
 def test_strip_http_with_ssl(self):
     self.assertEqual(strip_http('https://www.example.com'),
                      'www.example.com')
Пример #3
0
 def test_strip_http_with_long_domain(self):
     self.assertEqual(strip_http('http://www.example.co.uk'),
                      'www.example.co.uk')
Пример #4
0
 def test_strip_http_empty(self):
     self.assertEqual(strip_http(None), '')