def test_command_next_404(self): xkcd.sel_comic = 403 xkcd.cur_max_comic = 1000 xkcd.command_next() self.assertEqual(xkcd.sel_comic, 405)
def test_command_next_max(self): xkcd.sel_comic = 1000 xkcd.cur_max_comic = 1000 xkcd.command_next() self.assertEqual(xkcd.sel_comic, 1000)
def test_command_next_many(self): xkcd.sel_comic = 656 xkcd.cur_max_comic = 1000 xkcd.command_next(10) self.assertEqual(xkcd.sel_comic, 666)