Exemple #1
0
    def test_boolPreview(self):
        previews = self.registry[ID_PREVIEW]
        self.assertIs(previews[ptah.form.BoolField], fieldpreviews.boolPreview)

        request = DummyRequest()
        html = fieldpreviews.boolPreview(request)
        self.assertIn('Boolean field', html)
Exemple #2
0
    def test_boolPreview(self):
        previews = config.get_cfg_storage(PREVIEW_ID)
        self.assertIs(previews[form.BoolField], fieldpreviews.boolPreview)

        request = DummyRequest()
        html = fieldpreviews.boolPreview(request)
        self.assertIn('Boolean field', html)
Exemple #3
0
    def test_boolPreview(self):
        previews = config.registry.storage[PREVIEW_ID]
        self.assertIs(previews[form.BoolField],
                      fieldpreviews.boolPreview)

        request = DummyRequest()
        html = fieldpreviews.boolPreview(request)
        self.assertIn('Boolean field', html)
    def test_boolPreview(self):
        previews = self.registry[form.directives.ID_PREVIEW]
        self.assertIs(previews[ptah.form.BoolField],
                      fieldpreviews.boolPreview)

        request = DummyRequest()
        html = fieldpreviews.boolPreview(request)
        self.assertIn('Boolean field', html)