Esempio 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
Esempio 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
Esempio 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()
Esempio 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()
Esempio 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()
Esempio 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()