Пример #1
0
 def test_file_relpath(self):
     cwd = os.getcwd()
     try:
         os.chdir(os.path.dirname(__file__))
         fileobj = StorageWrapper.file('test_storage.py')
         assert isinstance(fileobj, file)
     finally:
         os.chdir(cwd)
Пример #2
0
 def test_file_abspath(self):
     fileobj = StorageWrapper.file(__file__)
     assert isinstance(fileobj, file)