def test_cmd_shutdown_empty(self): with self.assertRaises(SystemExit): ircbot.cmd_shutdown()
def test_cmd_shutdown_with_argument(self): with self.assertRaises(SystemExit): ircbot.cmd_shutdown("message")