Changeset 1792 in products for quintagroup.seoptimizer/branches/refactoring2.3.0/quintagroup/seoptimizer/tests/base.py
- Timestamp:
- Feb 19, 2010 4:53:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.seoptimizer/branches/refactoring2.3.0/quintagroup/seoptimizer/tests/base.py
r1779 r1792 66 66 ptc.setupPloneSite() 67 67 68 class MixinTestCase: 68 69 69 class TestCase(ptc.PloneTestCase): 70 def _getauth(self): 71 # Fix authenticator for the form 72 import re 73 74 authenticator = self.portal.restrictedTraverse("@@authenticator") 75 html = authenticator.authenticator() 76 handle = re.search('value="(.*)"', html).groups()[0] 77 return handle 78 79 80 81 class TestCase(MixinTestCase, ptc.PloneTestCase): 70 82 """We use this base class for all the tests in this package. If 71 83 necessary, we can put common utility or setup code in here. This … … 73 85 """ 74 86 75 class FunctionalTestCase( ptc.FunctionalTestCase):87 class FunctionalTestCase(MixinTestCase, ptc.FunctionalTestCase): 76 88 """We use this class for functional integration tests that use 77 89 doctest syntax. Again, we can put basic common utility or setup
Note: See TracChangeset
for help on using the changeset viewer.