source: products/quintagroup.captcha.core/trunk/quintagroup/captcha/core/tests/base.py @ 1957

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

#172: move tests module into tests package. Split into testInstall and testWidget. Add testing test_captcha skin layer with captcha test form

  • Property svn:eol-style set to native
File size: 854 bytes
Line 
1import unittest
2import os
3import sys
4import re
5
6from Products.Five import zcml
7from Products.Five import fiveconfigure
8
9from Testing import ZopeTestCase as ztc
10from Products.PloneTestCase.layer import onsetup
11from Products.PloneTestCase import PloneTestCase as ptc
12from Products.PloneTestCase.PloneTestCase import portal_owner
13from Products.PloneTestCase.PloneTestCase import default_password
14
15from Products.CMFCore.utils import getToolByName
16
17from quintagroup.captcha.core.config import *
18from quintagroup.captcha.core.utils import getWord, decrypt, parseKey
19
20@onsetup
21def setup_product():
22    fiveconfigure.debug_mode = True
23    import quintagroup.captcha.core
24    zcml.load_config('configure.zcml', quintagroup.captcha.core)
25    fiveconfigure.debug_mode = False
26    ztc.installPackage('quintagroup.captcha.core')
27
28setup_product()
29ptc.setupPloneSite()
Note: See TracBrowser for help on using the repository browser.