'Test clean_hosts'

def test_clean_hosts(self):

    dirty_hosts = 'http://127.0.0.1:8080,https://mail.google.com/mail,http://localhost:8081/home/displayShow?show=80379#season-10,www.google.com/search,'
    clean_result = '127.0.0.1:8080,mail.google.com:5050,localhost:8081,www.google.com:5050'
    self.assertEqual(config.clean_hosts(dirty_hosts, '5050'), clean_result)
