ERROR Failure AttributeError module object has no attribute Database -

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'Database')
----------------------------------------------------------------------
Traceback (most recent call last):
File "//usr/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/loader.py", line 364, in loadTestsFromName
addr.filename, addr.module)
File "//usr/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "//usr/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/importer.py", line 84, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/sergey/dev/w/rw-openpanel/openpanel/utils/tests/test_urls.py", line 4, in <module>
from tests.tddspry.django.djangohelper import create_user
File "/home/sergey/dev/w/rw-openpanel/tests/tddspry/django/djangohelper.py", line 21, in <module>
from twill_mock import *
File "/home/sergey/dev/w/rw-openpanel/tests/tddspry/django/twill_mock.py", line 29, in <module>
filterwarnings('always', category=backend.Database.Warning)
AttributeError: 'module' object has no attribute 'Database'