

def test_init_blueprint_admin_error(self):
    blueprint = Blueprint('test_testblueprint', 'testapp.testblueprint', template_folder='templates')
    views = LazyViews(blueprint, 'testapp')
    self.assertRaises(ValueError, views.add_admin, 'admin.AdminView')

dataset/ETHPy150Open playpauseandstop/Flask-LazyViews/testapp/testblueprint/tests.py TestLazyViews.test_init_blueprint_admin_error/original