Changeset 3426 in products


Ignore:
Timestamp:
Apr 12, 2012 7:52:23 AM (7 years ago)
Author:
vmaksymiv
Message:

fixed tests

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  
    6161        self.folder.invokeFactory('FormFolder', 'ff1') 
    6262        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) 
    6964 
    7065    def testSchema(self): 
  • quintagroup.pfg.captcha/branches/broken_types/quintagroup/pfg/captcha/tests/testMigration.py

    r3212 r3426  
    11import unittest 
     2from quintagroup.pfg.captcha.field import CAPTCHA_ID 
    23from quintagroup.pfg.captcha.tests.base import TestCaseNotInstalled, \ 
    34    REQUIREMENTS 
     
    4243        self.portal.invokeFactory("FormFolder", 'test_form') 
    4344        test_form = self.portal['test_form'] 
    44         test_form.invokeFactory("CaptchaField", 'test_captcha_field') 
     45        test_form.invokeFactory("CaptchaField", CAPTCHA_ID) 
    4546        self.cf_path = "test_form/key" 
    4647        self.old_cf = self.portal.unrestrictedTraverse(self.cf_path) 
Note: See TracChangeset for help on using the changeset viewer.