Changeset 3168 in products for quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/tests/testMigration.py
- Timestamp:
- Apr 21, 2011 1:43:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/tests/testMigration.py
r2737 r3168 1 from base import * 2 from Products.PloneTestCase.setup import cleanupPloneSite 3 from Products.PloneTestCase.setup import portal_name 4 from Products.PloneTestCase.setup import SiteCleanup 1 import unittest 2 from quintagroup.pfg.captcha.tests.base import TestCaseNotInstalled 3 5 4 6 5 class TestMigration(TestCaseNotInstalled): … … 32 31 33 32 def beforeTearDown(self): 34 self.qi.uninstallProducts(["quintagroup.pfg.captcha", ])33 self.qi.uninstallProducts(["quintagroup.pfg.captcha", ]) 35 34 36 35 def prepareToMigration(self): … … 42 41 test_form.invokeFactory("CaptchaField", 'test_captcha_field') 43 42 self.cf_path = "test_form/key" 44 self.old_cf = self.portal.unrestrictedTraverse(self.cf_path) 43 self.old_cf = self.portal.unrestrictedTraverse(self.cf_path) 45 44 self.assert_(self.old_cf) 46 self.pt['CaptchaField'].manage_changeProperties(product="qPloneCaptchaField") 45 self.pt['CaptchaField'].manage_changeProperties( 46 product="qPloneCaptchaField") 47 47 self.qi.manage_delObjects('quintagroup.pfg.captcha') 48 48 49 49 def testMigration(self): 50 50 self.addProduct("quintagroup.pfg.captcha") 51 new_cf = self.portal.unrestrictedTraverse(self.cf_path) 51 new_cf = self.portal.unrestrictedTraverse(self.cf_path) 52 52 self.assert_(self.old_cf != new_cf) 53 53
Note: See TracChangeset
for help on using the changeset viewer.