[CMF-checkins] CVS: CMF/CMFDefault/tests - test_Image.py:1.3
Shane Hathaway
shane@cvs.zope.org
Fri, 11 Jan 2002 12:26:37 -0500
Update of /cvs-repository/CMF/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv32135
Modified Files:
test_Image.py
Log Message:
Used a more robust way of finding the test image.
=== CMF/CMFDefault/tests/test_Image.py 1.2 => 1.3 ===
from Products.CMFDefault.Image import Image
+from Products.CMFDefault import tests
-TESTS_HOME = os.path.join(INSTANCE_HOME, 'Products/CMFDefault/tests')
+TESTS_HOME = tests.__path__[0]
TEST_JPG = os.path.join(TESTS_HOME, 'TestImage.jpg')