示例#1
0
    def test_uses_request_authority(self, pyramid_request):
        pyramid_request.authority = 'bar.com'

        svc = group_links_factory(None, pyramid_request)

        assert svc._default_authority == 'bar.com'
示例#2
0
    def test_list_groups_factory(self, pyramid_request):
        svc = group_links_factory(None, pyramid_request)

        assert isinstance(svc, GroupLinksService)
    def test_group_links_factory(self, pyramid_request):
        svc = group_links_factory(None, pyramid_request)

        assert isinstance(svc, GroupLinksService)
    def test_uses_request_default_authority(self, pyramid_request):
        pyramid_request.default_authority = "bar.com"

        svc = group_links_factory(None, pyramid_request)

        assert svc._default_authority == "bar.com"
示例#5
0
    def test_uses_request_default_authority(self, pyramid_request):
        pyramid_request.default_authority = "bar.com"

        svc = group_links_factory(None, pyramid_request)

        assert svc._default_authority == "bar.com"  # pylint:disable=protected-access