'Specify host key algorithms.'

def test_host_key_algorithms(self):

    opts = ConchOptions()
    e = self.assertRaises(SystemExit, opts.opt_host_key_algorithms, 'invalid-key')
    self.assertIn('Unknown    host    key    type', e.code)
    opts = ConchOptions()
    opts.opt_host_key_algorithms('ssh-rsa')
    self.assertEqual(opts['host-key-algorithms'], ['ssh-rsa'])
    opts.opt_host_key_algorithms('ssh-dss')
    self.assertEqual(opts['host-key-algorithms'], ['ssh-dss'])
    opts.opt_host_key_algorithms('ssh-rsa,ssh-dss')
    self.assertEqual(opts['host-key-algorithms'], ['ssh-rsa', 'ssh-dss'])
