Пример #1
0
 def test_many_many(self):
     self.assert_message(
         messages.LiveEnvironmentNotConsistent(
             [file_type_codes.CIB, file_type_codes.BOOTH_CONFIG],
             [file_type_codes.COROSYNC_CONF, file_type_codes.BOOTH_KEY],
         ),
         ("When '--booth-conf', '-f' are specified, "
          "'--booth-key', '--corosync_conf' must be specified as well"),
     )
Пример #2
0
 def test_one_one(self):
     self.assert_message(
         messages.LiveEnvironmentNotConsistent(
             [file_type_codes.BOOTH_CONFIG],
             [file_type_codes.BOOTH_KEY],
         ),
         ("When '--booth-conf' is specified, "
          "'--booth-key' must be specified as well"),
     )