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