|
I decided it’s about time to use functional tests. I’ve
been setting them up with the following code and I get the following error (I’ve never gotten it to work): import time import unittest from zope.app.tests.functional import BrowserTestCase from merchantlink.app import MerchantLink class MerchantLinkTests(BrowserTestCase): def test_add(self): response = self.publish( "/+/merchantlink.app.MerchantLink=", basic='mgr:mgrpw', form={'add_input_name':u'merchantlink', 'UPDATE_SUBMIT' : 'Add'}) self.assertEqual(response.getStatus(),302) self.assertEqual(response.getHeader('Location'), 'http://localhost/@@contents.html') merchantlink = self.getRootFolder()['merchantlink'] def test_suite(): return unittest.TestSuite(( unittest.makeSuite(MerchantLinkTests), )) if __name__=='__main__': unittest.main(defaultTest='test_suite') Results: ... IOError: [Errno 2] No such file or directory:
'/home/djohnson/dev/whiteboard/lib/python/merchantlink/browser/tests/ftesting.zcml' -- David Johnson |
_______________________________________________ Zope3-users mailing list [email protected] http://mail.zope.org/mailman/listinfo/zope3-users
