Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
cloudooo
Commits
28c04038
Commit
28c04038
authored
Jun 01, 2011
by
Priscila Manhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed updatemetadata request
parent
728e3166
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cloudooo/tests/cloudoooTestCase.py
cloudooo/tests/cloudoooTestCase.py
+3
-3
No files found.
cloudooo/tests/cloudoooTestCase.py
View file @
28c04038
...
@@ -52,8 +52,7 @@ class TestCase(unittest.TestCase):
...
@@ -52,8 +52,7 @@ class TestCase(unittest.TestCase):
for
key
,
value
in
expected_metadata
.
iteritems
():
for
key
,
value
in
expected_metadata
.
iteritems
():
self
.
assertEquals
(
metadata_dict
[
key
],
value
)
self
.
assertEquals
(
metadata_dict
[
key
],
value
)
def
_testUpdateMetadata
(
self
,
input_url
,
source_format
,
metadata_dict
,
def
_testUpdateMetadata
(
self
,
input_url
,
source_format
,
metadata_dict
):
expected_metadata
):
""" Generic test for setting metadata for file """
""" Generic test for setting metadata for file """
output_data
=
self
.
proxy
.
updateFileMetadata
(
encodestring
(
open
(
input_url
).
read
()),
output_data
=
self
.
proxy
.
updateFileMetadata
(
encodestring
(
open
(
input_url
).
read
()),
source_format
,
source_format
,
...
@@ -61,7 +60,8 @@ class TestCase(unittest.TestCase):
...
@@ -61,7 +60,8 @@ class TestCase(unittest.TestCase):
new_metadata_dict
=
self
.
proxy
.
getFileMetadataItemList
(
new_metadata_dict
=
self
.
proxy
.
getFileMetadataItemList
(
encodestring
(
output_data
),
encodestring
(
output_data
),
source_format
)
source_format
)
self
.
assertEquals
(
new_metadata_dict
,
expected_metadata
)
for
key
,
value
in
metadata_dict
.
iteritems
():
self
.
assertEquals
(
new_metadata_dict
[
key
],
value
)
def
ConversionScenarioList
(
self
):
def
ConversionScenarioList
(
self
):
"""This method must be overwrited into subclasses"""
"""This method must be overwrited into subclasses"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment