def test_command_last_arg(self): output = xkcd.command_last("test") self.assertEqual(output, "Command does not take arguments")
def test_command_last(self): xkcd.sel_comic = 1 xkcd.cur_max_comic = 1000 xkcd.command_last() self.assertEqual(xkcd.sel_comic, xkcd.cur_max_comic)