-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Test should be update so the can be run in working directory. Currently when running 'python test_cdmi_object.py' the test will fail:
ERROR: test_create_object_cdmi_multipart (main.TestCDMIObject)
Traceback (most recent call last):
File "test_cdmi_object.py", line 172, in test_create_object_cdmi_multipart
fp = open(path + os.sep + 'desert.jpg', 'rb')
IOError: [Errno 2] No such file or directory: '/desert.jpg'
ERROR: test_create_object_non_cdmi_multipart (main.TestCDMIObject)
Traceback (most recent call last):
File "test_cdmi_object.py", line 216, in test_create_object_non_cdmi_multipart
fp = open(os.sep.join([path, 'desert.jpg']), 'rb')
IOError: [Errno 2] No such file or directory: '/desert.jpg'
Running test from 'python cdmi/test_cdmi_object.py' works.
Also tests should make use of os.sep instead of '/'
Metadata
Metadata
Assignees
Labels
No labels