예제 #1
0
 def test_sanitized_hostname(self):
     '''
     Test sanitized input for hostname (id)
     '''
     value = '   ../ ../some/dubious/hostname      '
     response = clean.hostname(value)
     assert response == 'somedubioushostname'
예제 #2
0
 def test_sanitized_hostname(self):
     """
     Test sanitized input for hostname (id)
     """
     value = "   ../ ../some/dubious/hostname      "
     response = clean.hostname(value)
     assert response == "somedubioushostname"