Ejemplo n.º 1
0
 def test_boss_error(self):
     try:
         raise exc.BossError("BossError Test")
     except exc.BossError as e:
         test.eq(e.msg, "BossError Test")
         test.eq(e.__str__(), "BossError Test")
         raise
Ejemplo n.º 2
0
 def test_boss_error(self):
     try:
         raise exc.BossError("BossError Test")
     except exc.BossError as e:
         test.eq(e.msg, "BossError Test")
         test.eq(e.__str__(), "BossError Test")
         raise
Ejemplo n.º 3
0
 def test_create_missing_template(self):
     try:
         app = get_test_app(argv=['create', self.tmp_dir])
         app.setup()
         app.run()
     except exc.BossArgumentError as e:
         test.eq(e.msg, "Template label required.")
         raise
     finally:
         app.close()
Ejemplo n.º 4
0
 def test_create_bad_destination(self):
     try:
         app = get_test_app(argv=['create'])
         app.setup()
         app.run()
     except exc.BossArgumentError as e:
         test.eq(e.msg, "Destination path required.")
         raise
     finally:
         app.close()
Ejemplo n.º 5
0
 def test_create_missing_template(self):
     try:
         app = get_test_app(argv=['create', self.tmp_dir])
         app.setup()
         app.run()
     except exc.BossArgumentError as e:
         test.eq(e.msg, "Template label required.")
         raise
     finally:
         app.close()
Ejemplo n.º 6
0
 def test_create_bad_destination(self):
     try:
         app = get_test_app(argv=['create'])
         app.setup()
         app.run()
     except exc.BossArgumentError as e:
         test.eq(e.msg, "Destination path required.")
         raise
     finally:
         app.close()