def test_include_pontoon_no_setting(): del settings.LOCALIZATION_HOST request = RequestFactory().get('/') request.get_host = lambda: 'foo.example.com' assert not include_pontoon(request)
def test_include_pontoon_no_setting(): del settings.LOCALIZATION_HOST request = RequestFactory().get('/') request.get_host = lambda: 'foo.example.com' assert not include_pontoon(request)
def test_include_pontoon_invalid_host(): request = RequestFactory().get('/') request.get_host = lambda: 'foo.example.com' assert not include_pontoon(request)
def test_include_pontoon_invalid_host(): request = RequestFactory().get('/') request.get_host = lambda: 'foo.example.com' assert not include_pontoon(request)