def test_parse_host(self): for line, expected in HOST_TEST_DATA: self.assertEqual(parse_host(line), expected)