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)
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)
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)
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)