How to run test suite for

Hi all

I am attempting to replace a bug in in a unit test so I can more accurate report the issue with a test alongside it.

I've tried various things to get the unit test suite running in nose but I'm faced with various errors along the way.

Just running 'python' test claims to be running tests but even adding a failure into a test doesn't do anything.

git clone
virtualenv ~/pythons/p.a.iterate
~/pythons/p.a.iterate/bin/python test
~/pythons/p.a.iterate/bin/pip install nose

~/$ ~/pythons/p.a.iterate/bin/nosetests

ERROR: Failure: ImportError (No module named zope.i18nmessageid)

Traceback (most recent call last):
File "/home/neil/pythons/p.a.iterate/local/lib/python2.7/site-packages/nose/", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/home/neil/pythons/p.a.iterate/local/lib/python2.7/site-packages/nose/", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/neil/pythons/p.a.iterate/local/lib/python2.7/site-packages/nose/", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/neil/", line 26, in
from zope.i18nmessageid import MessageFactory
ImportError: No module named zope.i18nmessageid

Ran 1 test in 0.004s

FAILED (errors=1)

Anyone have any ideas for me on this?


I answered on Slack but let's keep it here too: afaik nose isn't supported. You have to run tests from your own buildout home (e.g. buildout.coredev) with ./bin/test -m

1 Like