コード例 #1
0
    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)
コード例 #2
0
ファイル: test_fieldpreviews.py プロジェクト: blaflamme/ptah
    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)
コード例 #3
0
    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)
コード例 #4
0
    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)