Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
Accept empty referrers.

src/m/a/mapproxy-HEAD/mapproxy/test/unit/test_referrer.py   mapproxy(Download)
 
from mapproxy.response import Response
from mapproxy.security.referrer import ReferrerFilter, NONE, SELF, REGEX
 
 
    def test_none(self):
        app = TestApp(ReferrerFilter(self.check_app, [NONE]))
        app.get('/')
        assert self.check_app.called
 

src/m/a/MapProxy-1.6.0/mapproxy/test/unit/test_referrer.py   MapProxy(Download)
 
from mapproxy.response import Response
from mapproxy.security.referrer import ReferrerFilter, NONE, SELF, REGEX
 
 
    def test_none(self):
        app = TestApp(ReferrerFilter(self.check_app, [NONE]))
        app.get('/')
        assert self.check_app.called