[Checkins] SVN: gocept.selenium/branches/jw-staticfiles-testlayer/src/gocept/selenium/static/tests/test_static.py fix finding the alert template file
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Thu Jun 3 09:10:44 EDT 2010
Log message for revision 113002:
fix finding the alert template file
Changed:
U gocept.selenium/branches/jw-staticfiles-testlayer/src/gocept/selenium/static/tests/test_static.py
-=-
Modified: gocept.selenium/branches/jw-staticfiles-testlayer/src/gocept/selenium/static/tests/test_static.py
===================================================================
--- gocept.selenium/branches/jw-staticfiles-testlayer/src/gocept/selenium/static/tests/test_static.py 2010-06-03 13:07:21 UTC (rev 113001)
+++ gocept.selenium/branches/jw-staticfiles-testlayer/src/gocept/selenium/static/tests/test_static.py 2010-06-03 13:10:44 UTC (rev 113002)
@@ -13,6 +13,7 @@
##############################################################################
import os
+import pkg_resources
import shutil
import tempfile
import time
@@ -65,9 +66,10 @@
self.assert_(self.testlayer.documentroot.startswith(default_tmp_dir))
def test_using_selenese(self):
- fixtures = os.path.dirname(gocept.selenium.tests.fixture.__file__)
+ alert_template = pkg_resources.resource_filename(
+ 'gocept.selenium.tests.fixture', 'alert.pt')
shutil.copy(
- os.path.join(fixtures, 'alert.pt'),
+ os.path.join(alert_template),
os.path.join(self.documentroot, 'alert.html'))
self.selenium.open('/alert.html')
More information about the checkins
mailing list