示例#1
0
 def test_command_last_arg(self):
     output = xkcd.command_last("test")
     self.assertEqual(output, "Command does not take arguments")
示例#2
0
 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)