예제 #1
0
파일: test.py 프로젝트: koansys/lorem
 def test_host_tld_ftp(self):
     self.assertEqual(t.url("ftp://foo.com"), 'ftp://example.com')
예제 #2
0
파일: test.py 프로젝트: koansys/lorem
 def test_host_tld(self):
     self.assertEqual(t.url("http://foo.com"), 'http://example.com')
예제 #3
0
파일: test.py 프로젝트: koansys/lorem
 def test_host_domain_path(self):
     self.assertEqual(t.url("https://foo.bar.stuff.com/path/to/thing?query=42#pound"),
                      'https://royce.earthquake.example.com/path/to/thing?query=42#pound')
예제 #4
0
파일: test.py 프로젝트: koansys/lorem
 def test_empty(self):
     self.assertEqual(t.url(""), '')
예제 #5
0
파일: test.py 프로젝트: koansys/lorem
 def test_host_domain(self):
     self.assertEqual(t.url("https://foo.bar.com"), 'https://royce.example.com')