def test_directives(self):
        assert not 'skip_directives' in self.route.route

        route = self.route.directives()
        assert not 'skip_directives' in route.route

        route = self.route.directives(False)
        assert 'skip_directives' in route.route
Test to ensure changing wether a local route should supply directives or not works as expected
dataset/ETHPy150Open timothycrosley/hug/tests/test_routing.py/TestLocalRouter.test_directives