Ejemplo n.º 1
0
 def test_command_aliases(self):
     tool = MockTool()
     options = MockOptions()
     options.ensure_value("confirm", False)
     options.ensure_value("seconds_to_sleep", 120)
     sheriffbot = SheriffBot()
     sheriffbot.execute(options, [], tool, MockQueueEngine)
     sheriffbot.begin_work_queue()
     irc_bot = sheriffbot._irc_bot
     # Test Rollout command aliases
     revert_command, args = irc_bot._parse_command_and_args("revert")
     self.assertEqual(revert_command, Rollout)
Ejemplo n.º 2
0
 def test_command_aliases(self):
     tool = MockTool()
     options = MockOptions()
     options.ensure_value("confirm", False)
     options.ensure_value("seconds_to_sleep", 120)
     sheriffbot = SheriffBot()
     sheriffbot.execute(options, [], tool, MockQueueEngine)
     sheriffbot.begin_work_queue()
     irc_bot = sheriffbot._irc_bot
     # Test Revert command aliases
     rollout_command, args = irc_bot._parse_command_and_args("rollout")
     self.assertEqual(rollout_command, Revert)
Ejemplo n.º 3
0
 def test_command_aliases(self):
     tool = MockTool()
     options = MockOptions()
     options.ensure_value("confirm", False)
     sheriffbot = SheriffBot()
     sheriffbot.execute(options, [], tool, MockQueueEngine)
     sheriffbot.begin_work_queue()
     irc_bot = sheriffbot._irc_bot
     # Test Rollout command aliases
     revert_command, args = irc_bot._parse_command_and_args("revert")
     self.assertEqual(revert_command, Rollout)
     # Test Sheriffs command aliases
     gardeners_command, args = irc_bot._parse_command_and_args("gardeners")
     self.assertEqual(gardeners_command, Sheriffs)
     sherifs_command, args = irc_bot._parse_command_and_args("sherifs")
     self.assertEqual(sherifs_command, Sheriffs)
     sherrifs_command, args = irc_bot._parse_command_and_args("sherrifs")
     self.assertEqual(sherrifs_command, Sheriffs)
     sherriffs_command, args = irc_bot._parse_command_and_args("sherriffs")
     self.assertEqual(sherriffs_command, Sheriffs)