'Specify MAC algorithms.'

def test_macs(self):

    opts = ConchOptions()
    e = self.assertRaises(SystemExit, opts.opt_macs, 'invalid-mac')
    self.assertIn('Unknown    mac    type', e.code)
    opts = ConchOptions()
    opts.opt_macs('hmac-sha2-512')
    self.assertEqual(opts['macs'], ['hmac-sha2-512'])
    opts.opt_macs('hmac-sha2-512')
    self.assertEqual(opts['macs'], ['hmac-sha2-512'])
    opts.opt_macs('hmac-sha2-256,hmac-sha1,hmac-md5')
    self.assertEqual(opts['macs'], ['hmac-sha2-256', 'hmac-sha1', 'hmac-md5'])
