Ejemplo n.º 1
0
    def test_textPreview(self):
        previews = self.registry[ID_PREVIEW]
        self.assertIs(previews[ptah.form.TextField], fieldpreviews.textPreview)

        request = DummyRequest()
        html = fieldpreviews.textPreview(request)
        self.assertIn('Text field', html)
Ejemplo n.º 2
0
    def test_textPreview(self):
        previews = config.get_cfg_storage(PREVIEW_ID)
        self.assertIs(previews[form.TextField], fieldpreviews.textPreview)

        request = DummyRequest()
        html = fieldpreviews.textPreview(request)
        self.assertIn('Text field', html)
Ejemplo n.º 3
0
    def test_textPreview(self):
        previews = config.registry.storage[PREVIEW_ID]
        self.assertIs(previews[form.TextField],
                      fieldpreviews.textPreview)

        request = DummyRequest()
        html = fieldpreviews.textPreview(request)
        self.assertIn('Text field', html)
Ejemplo n.º 4
0
    def test_textPreview(self):
        previews = config.get_cfg_storage(PREVIEW_ID)
        self.assertIs(previews[form.TextField],
                      fieldpreviews.textPreview)

        request = DummyRequest()
        html = fieldpreviews.textPreview(request)
        self.assertIn('Text field', html)
Ejemplo n.º 5
0
    def test_textPreview(self):
        previews = self.registry[form.directives.ID_PREVIEW]
        self.assertIs(previews[ptah.form.TextField],
                      fieldpreviews.textPreview)

        request = DummyRequest()
        html = fieldpreviews.textPreview(request)
        self.assertIn('Text field', html)