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
|
Rev | Line | |
---|
[2732] | 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 |
---|
| 5 | |
---|
| 6 | class 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 | |
---|
| 23 | def 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.