Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version w/ new directory


I have created a new subdiretory ~/nova/nova/attestation with a new file I have also create a new unit test under ~/nova/tests/scheduler/ where has "from nova.attestation import service"

When I run "python scheduler.test_attestation:TestAttestation.test_sdk", I am experiencing following error. that can't locate attestation directory. Do I need to specify new created directory in anyplace for testing?


fred@storky:~/d2/nova$ python scheduler.test_attestation:TestAttestation.test_sdk 2011-08-18 10:37:51,066 INFO rdflib [-] version: 2.4.2 Failure runTest ERROR


ERROR: Failure: ImportError (No module named attestation)

Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/nose/", line 382, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.7/nose/", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.7/nose/", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/fred/d2/nova/nova/tests/scheduler/", line 40, in <module> from nova.attestation import service ImportError: No module named attestation

Ran 1 test in 0.001s

FAILED (errors=1)