Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Roque
cloudooo
Commits
ebd5a705
Commit
ebd5a705
authored
May 31, 2011
by
Priscila Manhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified for receiving base_document into _getMetadata
parent
fde15f01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
cloudooo/tests/cloudoooTestCase.py
cloudooo/tests/cloudoooTestCase.py
+6
-3
No files found.
cloudooo/tests/cloudoooTestCase.py
View file @
ebd5a705
...
@@ -42,12 +42,15 @@ class TestCase(unittest.TestCase):
...
@@ -42,12 +42,15 @@ class TestCase(unittest.TestCase):
file_type
=
self
.
_getFileType
(
output_data
)
file_type
=
self
.
_getFileType
(
output_data
)
self
.
assertEquals
(
file_type
,
destination_mimetype
)
self
.
assertEquals
(
file_type
,
destination_mimetype
)
def
_testGetMetadata
(
self
,
input_url
,
source_format
,
expected_metadata
):
def
_testGetMetadata
(
self
,
input_url
,
source_format
,
expected_metadata
,
base_document
=
False
):
""" Generic tes for getting metadata file"""
""" Generic tes for getting metadata file"""
metadata_dict
=
self
.
proxy
.
getFileMetadataItemList
(
metadata_dict
=
self
.
proxy
.
getFileMetadataItemList
(
encodestring
(
open
(
input_url
).
read
()),
encodestring
(
open
(
input_url
).
read
()),
source_format
)
source_format
,
self
.
assertEquals
(
expected_metadata
,
metadata_dict
)
base_document
)
for
key
,
value
in
expected_metadata
.
iteritems
():
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
):
expected_metadata
):
...
...
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