source: products/quintagroup.pfg.captcha/branches/migration/quintagroup/pfg/captcha/tests/testMigration.py @ 2732

Last change on this file since 2732 was 2732, checked in by mylan, 14 years ago

#222: Splited tests.py module into 2 layers with notinstalled and installed quintagroup.pfg.captcha packages

  • Property svn:eol-style set to native
File size: 790 bytes
RevLine 
[2732]1from base import *
2from Products.PloneTestCase.setup import cleanupPloneSite
3from Products.PloneTestCase.setup import portal_name
4from Products.PloneTestCase.setup import SiteCleanup
5
6class TestMigration(TestCaseNotInstalled):
7
8    def installPFGCaptcha(self):
9        for p in REQUIREMENTS:
10            self.addProduct(p)
11
12    def afterSetUp(self):
13        self.loginAsPortalOwner()
14
15    def test1(self):
16        qi = self.portal.portal_quickinstaller
17        import pdb;pdb.set_trace()
18        self.assert_(not qi.isProductInstalled("quintagroup.pfg.captcha"))
19        self.installPFGCaptcha()
20        self.assert_(qi.isProductInstalled("quintagroup.pfg.captcha"))
21
22
23def test_suite():
24    suite = unittest.TestSuite()
25    suite.addTest(unittest.makeSuite(TestMigration))
26    return suite
Note: See TracBrowser for help on using the repository browser.