'test that bad data passed to parse_machine() will raise an exception'

def test_parse_machine_bad(self):

    baddata = (('host:port', ValueError), ('host:22:33', ValueError), (':22', ValueError), ('user@', ValueError), ('user@:22', ValueError), (':pass@host', ValueError), (':pass@host#fedora16', ValueError))
    for (machine, exception) in baddata:
        self.assertRaises(exception, utils.parse_machine, machine)
