Exemplo n.º 1
0
 def test_simple_ws_hostname(self):
     allowable = list(string.whitespace)
     new_str = random_hostname_replacement(' ')
     for i in new_str:
         self.assertIn(i, allowable)
Exemplo n.º 2
0
 def test_complex_hostname(self):
     allowable = list('abcdefghijklmnopqrstuvwxyz-.0123456789')
     new_str = random_hostname_replacement('computer-63.foobar.com')
     for i in new_str:
         self.assertIn(i, allowable)
Exemplo n.º 3
0
 def test_simple_hostname(self):
     allowable = list('abcdefghijklmnopqrstuvwxyz-0123456789')
     new_str = random_hostname_replacement('sloth')
     for i in new_str:
         self.assertIn(i, allowable)