Source code for tests.30_libs.040_FileSysObjects.070_setUpperTreeSearchPath.100_general.Case000.CallCase
"""Check defaults.
"""
from __future__ import absolute_import
import unittest
import os,sys
from filesysobjects.FileSysObjects import setUpperTreeSearchPath,\
unescapeFilePath
#
#######################
#
[docs]class CallUnits(unittest.TestCase):
#
# Create by object
#
[docs] def testCase000(self):
"""Check defaults.
"""
_s = sys.path[:]
start = os.path.abspath(os.path.dirname(__file__))
top = None
res = []
ret = setUpperTreeSearchPath(start,top,res) #@UnusedVariable
resx = [
os.path.abspath(os.path.dirname(__file__)),
]
resx = map(os.path.normpath,resx)
[ sys.path.pop() for x in range(len(sys.path)) ] #@UnusedVariable
sys.path.extend(_s)
res = map(unescapeFilePath, res)
resx = map(unescapeFilePath, resx)
assert resx == res
pass
if __name__ == '__main__':
unittest.main()