--- a/Allura/allura/tests/test_helpers.py
+++ b/Allura/allura/tests/test_helpers.py
@@ -16,14 +16,15 @@
helpers.setup_basic_test()
def test_really_unicode():
+ here_dir = path.dirname(__file__)
s = h.really_unicode('\xef\xbb\xbf<?xml version="1.0" encoding="utf-8" ?>')
assert s.startswith(u'\ufeff')
- s = h.really_unicode(open('allura/tests/unicode_test.txt').read())
+ s = h.really_unicode(open(path.join(here_dir, 'data/unicode_test.txt')).read())
assert isinstance(s, unicode)
def test_render_genshi_plaintext():
here_dir = path.dirname(__file__)
- tpl = path.join(here_dir, 'genshi_hello_tmpl')
+ tpl = path.join(here_dir, 'data/genshi_hello_tmpl')
text = h.render_genshi_plaintext(tpl, object='world')
eq_(u'Hello, world!\n', text)