Esempio n. 1
0
 def test_command_prev_min(self):
     xkcd.sel_comic = 1
     xkcd.command_prev()
     self.assertEqual(xkcd.sel_comic, 1)
Esempio n. 2
0
 def test_command_prev_many(self):
     xkcd.sel_comic = 676
     xkcd.command_prev(10)
     self.assertEqual(xkcd.sel_comic, 666)
Esempio n. 3
0
 def test_command_prev_404(self):
     xkcd.sel_comic = 405
     xkcd.command_prev()
     self.assertEqual(xkcd.sel_comic, 403)
Esempio n. 4
0
 def test_command_prev_1(self):
     xkcd.sel_comic = 667
     xkcd.command_prev()
     self.assertEqual(xkcd.sel_comic, 666)