Example #1
0
    def test_decimalPreview(self):
        previews = config.registry.storage[PREVIEW_ID]
        self.assertIs(previews[form.DecimalField],
                      fieldpreviews.decimalPreview)

        request = DummyRequest()
        html = fieldpreviews.decimalPreview(request)
        self.assertIn('Decimal field', html)
Example #2
0
    def test_decimalPreview(self):
        previews = self.registry[form.directives.ID_PREVIEW]
        self.assertIs(previews[ptah.form.DecimalField],
                      fieldpreviews.decimalPreview)

        request = DummyRequest()
        html = fieldpreviews.decimalPreview(request)
        self.assertIn('Decimal field', html)
Example #3
0
    def test_decimalPreview(self):
        previews = self.registry[ID_PREVIEW]
        self.assertIs(previews[ptah.form.DecimalField],
                      fieldpreviews.decimalPreview)

        request = DummyRequest()
        html = fieldpreviews.decimalPreview(request)
        self.assertIn('Decimal field', html)
Example #4
0
    def test_decimalPreview(self):
        previews = config.get_cfg_storage(PREVIEW_ID)
        self.assertIs(previews[form.DecimalField],
                      fieldpreviews.decimalPreview)

        request = DummyRequest()
        html = fieldpreviews.decimalPreview(request)
        self.assertIn('Decimal field', html)