def test_floatPreview(self): previews = config.get_cfg_storage(PREVIEW_ID) self.assertIs(previews[form.FloatField], fieldpreviews.floatPreview) request = DummyRequest() html = fieldpreviews.floatPreview(request) self.assertIn('Float field', html)
def test_floatPreview(self): previews = config.registry.storage[PREVIEW_ID] self.assertIs(previews[form.FloatField], fieldpreviews.floatPreview) request = DummyRequest() html = fieldpreviews.floatPreview(request) self.assertIn('Float field', html)
def test_floatPreview(self): previews = self.registry[ID_PREVIEW] self.assertIs(previews[ptah.form.FloatField], fieldpreviews.floatPreview) request = DummyRequest() html = fieldpreviews.floatPreview(request) self.assertIn('Float field', html)
def test_floatPreview(self): previews = self.registry[form.directives.ID_PREVIEW] self.assertIs(previews[ptah.form.FloatField], fieldpreviews.floatPreview) request = DummyRequest() html = fieldpreviews.floatPreview(request) self.assertIn('Float field', html)