tests: Replace the path with __file__ in testCanAccessFile

Otherwise, the result of the test is dependent on the installed
packages.
This commit is contained in:
Fatih Aşıcı
2010-10-01 08:38:28 +00:00
parent 9696a5e2d0
commit 101ee48813
+1 -1
View File
@@ -13,7 +13,7 @@ class ShellTestCase(unittest.TestCase):
def testCanAccessFile(self):
from pisi.actionsapi.shelltools import can_access_file
assert can_access_file('/usr/lib/engines/libaep.so')
assert can_access_file(__file__)
assert not can_access_file('actionsapi/set.py')
def testCanAccessDirectory(self):