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)
def test_read_renders_form(self, authclient, pyramid_request): ctrl = AuthClientEditController(authclient, pyramid_request) ctx = ctrl.read() assert ctx['form'] == self._expected_form(authclient)
def test_read_renders_form(self, authclient, pyramid_request): ctrl = AuthClientEditController(authclient, pyramid_request) ctx = ctrl.read() assert ctx["form"] == self._expected_form(authclient)