Skip to content

Commit 657819e

Browse files
author
Alexander Smishlajev
committed
use new backends interface; fix vim modeline
1 parent ab33fd9 commit 657819e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/test_security.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,23 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21-
# $Id: test_security.py,v 1.6 2003-10-25 22:53:26 richard Exp $
21+
# $Id: test_security.py,v 1.7 2004-11-18 15:54:09 a1s Exp $
2222

2323
import os, unittest, shutil
2424

25+
from roundup import backends
2526
from roundup.password import Password
2627
from db_test_base import setupSchema, MyTestCase, config
2728

2829
class PermissionTest(MyTestCase):
2930
def setUp(self):
30-
from roundup.backends import anydbm
31+
backend = backends.get_backend('anydbm')
3132
# remove previous test, ignore errors
3233
if os.path.exists(config.DATABASE):
3334
shutil.rmtree(config.DATABASE)
3435
os.makedirs(config.DATABASE + '/files')
35-
self.db = anydbm.Database(config, 'admin')
36-
setupSchema(self.db, 1, anydbm)
36+
self.db = backend.Database(config, 'admin')
37+
setupSchema(self.db, 1, backend)
3738

3839
def testInterfaceSecurity(self):
3940
' test that the CGI and mailgw have initialised security OK '
@@ -108,4 +109,4 @@ def test_suite():
108109
runner = unittest.TextTestRunner()
109110
unittest.main(testRunner=runner)
110111

111-
# vim: set filetype=python ts=4 sw=4 et si
112+
# vim: set filetype=python sts=4 sw=4 et si :

0 commit comments

Comments
 (0)