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:
+1
-1
@@ -13,7 +13,7 @@ class ShellTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
def testCanAccessFile(self):
|
def testCanAccessFile(self):
|
||||||
from pisi.actionsapi.shelltools import can_access_file
|
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')
|
assert not can_access_file('actionsapi/set.py')
|
||||||
|
|
||||||
def testCanAccessDirectory(self):
|
def testCanAccessDirectory(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user