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
fde15f01
Commit
fde15f01
authored
May 31, 2011
by
Priscila Manhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solve zip problem in convert
parent
2a9aefac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cloudooo/tests/cloudoooTestCase.py
cloudooo/tests/cloudoooTestCase.py
+3
-2
No files found.
cloudooo/tests/cloudoooTestCase.py
View file @
fde15f01
...
@@ -33,11 +33,12 @@ class TestCase(unittest.TestCase):
...
@@ -33,11 +33,12 @@ class TestCase(unittest.TestCase):
return
mimetype
return
mimetype
def
_testConvertFile
(
self
,
input_url
,
source_format
,
destination_format
,
def
_testConvertFile
(
self
,
input_url
,
source_format
,
destination_format
,
destination_mimetype
):
destination_mimetype
,
zip
=
False
):
""" Generic test for converting file """
""" Generic test for converting file """
output_data
=
self
.
proxy
.
convertFile
(
encodestring
(
open
(
input_url
).
read
()),
output_data
=
self
.
proxy
.
convertFile
(
encodestring
(
open
(
input_url
).
read
()),
source_format
,
source_format
,
destination_format
)
destination_format
,
zip
)
file_type
=
self
.
_getFileType
(
output_data
)
file_type
=
self
.
_getFileType
(
output_data
)
self
.
assertEquals
(
file_type
,
destination_mimetype
)
self
.
assertEquals
(
file_type
,
destination_mimetype
)
...
...
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