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)
def test_file_abspath(self): fileobj = StorageWrapper.file(__file__) assert isinstance(fileobj, file)