示例#1
0
    def test_read(self, pyramid_request, auth_client):
        controller = AuthClientEditController(sentinel.context,
                                              pyramid_request)

        response = controller.read()

        assert response["form"] == self._expected_form(auth_client)
示例#2
0
    def test_read_renders_form(self, authclient, pyramid_request):
        ctrl = AuthClientEditController(authclient, pyramid_request)

        ctx = ctrl.read()

        assert ctx['form'] == self._expected_form(authclient)
示例#3
0
    def test_read_renders_form(self, authclient, pyramid_request):
        ctrl = AuthClientEditController(authclient, pyramid_request)

        ctx = ctrl.read()

        assert ctx["form"] == self._expected_form(authclient)