Changeset 3426 in products for quintagroup.pfg.captcha/branches/broken_types/quintagroup/pfg/captcha/tests
- Timestamp:
- Apr 12, 2012 7:52:23 AM (12 years ago)
- Location:
- quintagroup.pfg.captcha/branches/broken_types/quintagroup/pfg/captcha/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.pfg.captcha/branches/broken_types/quintagroup/pfg/captcha/tests/testInstalled.py
r3168 r3426 61 61 self.folder.invokeFactory('FormFolder', 'ff1') 62 62 self.ff1 = getattr(self.folder, 'ff1') 63 self.ff1.invokeFactory('CaptchaField', 'captcha_field') 64 65 def testId(self): 66 """CaptchaField has always CAPTCHA_ID id.""" 67 self.assertEqual(CAPTCHA_ID in self.ff1, True) 68 self.assertNotEqual('captcha_field' in self.ff1, True) 63 self.ff1.invokeFactory('CaptchaField', CAPTCHA_ID) 69 64 70 65 def testSchema(self): -
quintagroup.pfg.captcha/branches/broken_types/quintagroup/pfg/captcha/tests/testMigration.py
r3212 r3426 1 1 import unittest 2 from quintagroup.pfg.captcha.field import CAPTCHA_ID 2 3 from quintagroup.pfg.captcha.tests.base import TestCaseNotInstalled, \ 3 4 REQUIREMENTS … … 42 43 self.portal.invokeFactory("FormFolder", 'test_form') 43 44 test_form = self.portal['test_form'] 44 test_form.invokeFactory("CaptchaField", 'test_captcha_field')45 test_form.invokeFactory("CaptchaField", CAPTCHA_ID) 45 46 self.cf_path = "test_form/key" 46 47 self.old_cf = self.portal.unrestrictedTraverse(self.cf_path)
Note: See TracChangeset
for help on using the changeset viewer.