def test_command_prev_min(self): xkcd.sel_comic = 1 xkcd.command_prev() self.assertEqual(xkcd.sel_comic, 1)
def test_command_prev_many(self): xkcd.sel_comic = 676 xkcd.command_prev(10) self.assertEqual(xkcd.sel_comic, 666)
def test_command_prev_404(self): xkcd.sel_comic = 405 xkcd.command_prev() self.assertEqual(xkcd.sel_comic, 403)
def test_command_prev_1(self): xkcd.sel_comic = 667 xkcd.command_prev() self.assertEqual(xkcd.sel_comic, 666)