def test_textareaPreview(self): previews = config.registry.storage[PREVIEW_ID] self.assertIs(previews[form.TextAreaField], fieldpreviews.textareaPreview) request = DummyRequest() html = fieldpreviews.textareaPreview(request) self.assertIn('TextArea field', html)
def test_textareaPreview(self): previews = self.registry[form.directives.ID_PREVIEW] self.assertIs(previews[ptah.form.TextAreaField], fieldpreviews.textareaPreview) request = DummyRequest() html = fieldpreviews.textareaPreview(request) self.assertIn('TextArea field', html)
def test_textareaPreview(self): previews = self.registry[ID_PREVIEW] self.assertIs(previews[ptah.form.TextAreaField], fieldpreviews.textareaPreview) request = DummyRequest() html = fieldpreviews.textareaPreview(request) self.assertIn('TextArea field', html)
def test_textareaPreview(self): previews = config.get_cfg_storage(PREVIEW_ID) self.assertIs(previews[form.TextAreaField], fieldpreviews.textareaPreview) request = DummyRequest() html = fieldpreviews.textareaPreview(request) self.assertIn('TextArea field', html)