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
4cdfffb3
Commit
4cdfffb3
authored
May 18, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not decode twice the same data
The _getFileType already process decodestring() with the data.
parent
b11198dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cloudooo/handler/ooo/tests/testOooLegacyInterface.py
cloudooo/handler/ooo/tests/testOooLegacyInterface.py
+2
-2
No files found.
cloudooo/handler/ooo/tests/testOooLegacyInterface.py
View file @
4cdfffb3
...
@@ -46,7 +46,7 @@ class TestLegacyInterface(TestCase):
...
@@ -46,7 +46,7 @@ class TestLegacyInterface(TestCase):
'text/html'
)
'text/html'
)
self
.
assertEquals
(
response_dict
[
'mime'
],
'text/html'
)
self
.
assertEquals
(
response_dict
[
'mime'
],
'text/html'
)
self
.
assertEquals
(
self
.
_getFileType
(
decodestring
(
response_dict
[
'data'
])
),
self
.
assertEquals
(
self
.
_getFileType
(
response_dict
[
'data'
]
),
'text/html'
)
'text/html'
)
def
testHtmlToOdt
(
self
):
def
testHtmlToOdt
(
self
):
...
@@ -61,7 +61,7 @@ class TestLegacyInterface(TestCase):
...
@@ -61,7 +61,7 @@ class TestLegacyInterface(TestCase):
'text/html'
)
'text/html'
)
self
.
assertEquals
(
response_dict
[
'mime'
],
'application/vnd.oasis.opendocument.text'
)
self
.
assertEquals
(
response_dict
[
'mime'
],
'application/vnd.oasis.opendocument.text'
)
self
.
assertEquals
(
self
.
_getFileType
(
decodestring
(
response_dict
[
'data'
])
),
self
.
assertEquals
(
self
.
_getFileType
(
response_dict
[
'data'
]
),
'application/vnd.oasis.opendocument.text'
)
'application/vnd.oasis.opendocument.text'
)
def
test_suite
():
def
test_suite
():
...
...
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