Exemplo n.º 1
0
 def test_host_domain_2(self):
     self.assertEqual(t.host_name('foo.bar.stuff.gov'), 'royce.earthquake.example.gov')
Exemplo n.º 2
0
 def test_host_domain(self):
     self.assertEqual(t.host_name('foo.bar.com'), 'royce.example.com')
Exemplo n.º 3
0
 def test_domain_tld(self):
     self.assertEqual(t.host_name('foo.gov'), 'example.gov')
Exemplo n.º 4
0
 def test_no_domain(self):
     self.assertEqual(t.host_name('bar'), 'earthquake')
Exemplo n.º 5
0
 def test_no_domain_1(self):
     self.assertEqual(t.host_name('foo'), 'royce')
Exemplo n.º 6
0
 def test_empty(self):
     self.assertEqual(t.host_name(''), '')