def test_exclude_blueprint(self):
        self.app.config[
            'TRACK_USAGE_INCLUDE_OR_EXCLUDE_VIEWS'] = 'exclude'
        tu = TrackUsage(self.app, self.storage)
        tu.exclude_blueprint(self.blueprint)

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

        # Index should store something
        self.client.get('/')
        assert type(self.storage.get()) is dict

        # Both pages should not store anything
        for page in ('/included', '/excluded'):
            self.client.get(page)
            with self.assertRaises(IndexError):
                self.storage.get()
The username to authenticate as (default local username)
dataset/ETHPy150Open ashcrow/flask-track-usage/test/test_blueprints_include_exclude.py/TestBlueprintIncludeExclude.test_exclude_blueprint--crossover with--dataset/ETHPy150Open ucb-sts/sts/sts/entities/base.py/SSHEntity.username