Exemplo n.º 1
0
 def test_command_explain_invalidRenderer(self):
     xkcd.sel_comic = 1
     renderer = xkcd.html_renderer
     xkcd.html_renderer = "this_is_a_fake_command"
     output = xkcd.command_explain()
     excepted_output = "HTML renderer not found"
     xkcd.html_renderer = renderer
     self.assertEqual(output, excepted_output)
Exemplo n.º 2
0
 def test_command_explain_with_arg(self):
     xkcd.use_less = False
     result = xkcd.command_explain(1000)
     excepted_result = comic_1000_transcript
     self.assertEqual(result, excepted_result)
Exemplo n.º 3
0
 def test_command_explain(self):
     xkcd.use_less = False
     xkcd.sel_comic = 1000
     result = xkcd.command_explain()
     excepted_result = comic_1000_transcript
     self.assertEqual(result, excepted_result)