コード例 #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
ファイル: oauthclients_test.py プロジェクト: wisdom-garden/h
    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
ファイル: oauthclients_test.py プロジェクト: hypothesis/h
    def test_read_renders_form(self, authclient, pyramid_request):
        ctrl = AuthClientEditController(authclient, pyramid_request)

        ctx = ctrl.read()

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