def test_include_blueprint(self):
        self.app.config[
            'TRACK_USAGE_INCLUDE_OR_EXCLUDE_VIEWS'] = 'include'
        tu = TrackUsage(self.app, self.storage)
        tu.include_blueprint(self.blueprint)

        # There should be 2 included views, no excluded views
        assert len(tu._include_views) == 2
        assert len(tu._exclude_views) == 0

        # Both paged should store
        for page in ('/included', '/excluded'):
            self.client.get(page)
            assert type(self.storage.get()) is dict

        # But the index (outside of the blueprint) should not
        self.client.get('/')
        with self.assertRaises(IndexError):
            self.storage.get()
Returns a SQL expression that returns a random value.
dataset/ETHPy150Open ashcrow/flask-track-usage/test/test_blueprints_include_exclude.py/TestBlueprintIncludeExclude.test_include_blueprint--crossover with--dataset/ETHPy150Open avidal/django-pyodbc/sql_server/pyodbc/operations.py/DatabaseOperations.random_function_sql