Exemple #1
0
    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)
Exemple #3
0
    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)
Exemple #4
0
    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)