def test_simple_ws_hostname(self): allowable = list(string.whitespace) new_str = random_hostname_replacement(' ') for i in new_str: self.assertIn(i, allowable)
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)
def test_simple_hostname(self): allowable = list('abcdefghijklmnopqrstuvwxyz-0123456789') new_str = random_hostname_replacement('sloth') for i in new_str: self.assertIn(i, allowable)