'test that parse_machine() is outputting the correct data'

def test_parse_machine_good(self):

    gooddata = (('host', ('host', 'root', '', 22, '')), ('host:21', ('host', 'root', '', 21, '')), ('user@host', ('host', 'user', '', 22, '')), ('user:pass@host', ('host', 'user', 'pass', 22, '')), ('user:pass@host:1234', ('host', 'user', 'pass', 1234, '')), ('user:pass@host:1234#fedora16', ('host', 'user', 'pass', 1234, 'fedora16')), ('user:pass@host:1234#fedora16', ('host', 'user', 'pass', 1234, 'fedora16')), ('user:pass@host#fedora16', ('host', 'user', 'pass', 22, 'fedora16')), ('user@host#fedora16', ('host', 'user', '', 22, 'fedora16')))
    for (machine, result) in gooddata:
        self.assertEquals(utils.parse_machine(machine), result)
