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
04d2b1e8
Commit
04d2b1e8
authored
Sep 25, 2013
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove trailing whitespaces
parent
08f7a531
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cloudooo/handler/ooo/tests/testOooServer.py
cloudooo/handler/ooo/tests/testOooServer.py
+4
-4
No files found.
cloudooo/handler/ooo/tests/testOooServer.py
View file @
04d2b1e8
...
@@ -99,7 +99,7 @@ class TestServer(TestCase):
...
@@ -99,7 +99,7 @@ class TestServer(TestCase):
self
.
presentation_expected_list
.
sort
()
self
.
presentation_expected_list
.
sort
()
def
testGetAllowedTextExtensionListByType
(
self
):
def
testGetAllowedTextExtensionListByType
(
self
):
"""Verify if getAllowedExtensionList returns is a list with extension and
"""Verify if getAllowedExtensionList returns is a list with extension and
ui_name. The request is by document type as text"""
ui_name. The request is by document type as text"""
text_request
=
{
'document_type'
:
"text"
}
text_request
=
{
'document_type'
:
"text"
}
text_allowed_list
=
self
.
proxy
.
getAllowedExtensionList
(
text_request
)
text_allowed_list
=
self
.
proxy
.
getAllowedExtensionList
(
text_request
)
...
@@ -109,7 +109,7 @@ class TestServer(TestCase):
...
@@ -109,7 +109,7 @@ class TestServer(TestCase):
"%s not in %s"
%
(
arg
,
self
.
text_expected_list
))
"%s not in %s"
%
(
arg
,
self
.
text_expected_list
))
def
testGetAllowedPresentationExtensionListByType
(
self
):
def
testGetAllowedPresentationExtensionListByType
(
self
):
"""Verify if getAllowedExtensionList returns is a list with extension and
"""Verify if getAllowedExtensionList returns is a list with extension and
ui_name. The request is by document type as presentation"""
ui_name. The request is by document type as presentation"""
request_dict
=
{
'document_type'
:
"presentation"
}
request_dict
=
{
'document_type'
:
"presentation"
}
presentation_allowed_list
=
self
.
proxy
.
getAllowedExtensionList
(
request_dict
)
presentation_allowed_list
=
self
.
proxy
.
getAllowedExtensionList
(
request_dict
)
...
@@ -119,7 +119,7 @@ class TestServer(TestCase):
...
@@ -119,7 +119,7 @@ class TestServer(TestCase):
"%s not in %s"
%
(
arg
,
self
.
presentation_expected_list
))
"%s not in %s"
%
(
arg
,
self
.
presentation_expected_list
))
def
testGetAllowedExtensionListByExtension
(
self
):
def
testGetAllowedExtensionListByExtension
(
self
):
"""Verify if getAllowedExtensionList returns is a list with extension and
"""Verify if getAllowedExtensionList returns is a list with extension and
ui_name. The request is by extension"""
ui_name. The request is by extension"""
doc_allowed_list
=
self
.
proxy
.
getAllowedExtensionList
({
'extension'
:
"doc"
})
doc_allowed_list
=
self
.
proxy
.
getAllowedExtensionList
({
'extension'
:
"doc"
})
doc_allowed_list
.
sort
()
doc_allowed_list
.
sort
()
...
@@ -128,7 +128,7 @@ class TestServer(TestCase):
...
@@ -128,7 +128,7 @@ class TestServer(TestCase):
"%s not in %s"
%
(
arg
,
self
.
text_expected_list
))
"%s not in %s"
%
(
arg
,
self
.
text_expected_list
))
def
testGetAllowedExtensionListByMimetype
(
self
):
def
testGetAllowedExtensionListByMimetype
(
self
):
"""Verify if getAllowedExtensionList returns is a list with extension and
"""Verify if getAllowedExtensionList returns is a list with extension and
ui_name. The request is by mimetype"""
ui_name. The request is by mimetype"""
request_dict
=
{
"mimetype"
:
"application/msword"
}
request_dict
=
{
"mimetype"
:
"application/msword"
}
msword_allowed_list
=
self
.
proxy
.
getAllowedExtensionList
(
request_dict
)
msword_allowed_list
=
self
.
proxy
.
getAllowedExtensionList
(
request_dict
)
...
...
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