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
Kirill Smelkov
cloudooo
Commits
3edf572e
Commit
3edf572e
authored
Jun 07, 2011
by
Priscila Manhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refator to take off run_generate method cause its not generic to all handlers
parent
0262a86d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
28 deletions
+0
-28
cloudooo/tests/cloudoooTestCase.py
cloudooo/tests/cloudoooTestCase.py
+0
-28
No files found.
cloudooo/tests/cloudoooTestCase.py
View file @
3edf572e
...
@@ -100,24 +100,6 @@ class TestCase(unittest.TestCase):
...
@@ -100,24 +100,6 @@ class TestCase(unittest.TestCase):
self
.
assertEquals
(
response_message
,
expected_response_message
)
self
.
assertEquals
(
response_message
,
expected_response_message
)
self
.
assertEquals
(
response_dict
[
'meta'
][
'MIMEType'
],
response_dict_meta
)
self
.
assertEquals
(
response_dict
[
'meta'
][
'MIMEType'
],
response_dict_meta
)
def
_testRunGenerate
(
self
,
filename
,
data
,
meta
,
source_format
,
destination_format
,
expected_response_code
,
response_dict_data
,
response_dict_mime
):
"""Generic test for run_generate"""
generate_result
=
self
.
proxy
.
run_generate
(
filename
,
encodestring
(
data
),
meta
,
destination_format
,
source_format
)
response_code
,
response_dict
,
response_message
=
generate_result
self
.
assertEquals
(
response_code
,
expected_response_code
)
self
.
assertEquals
(
type
(
response_dict
),
DictType
)
if
expected_response_code
==
402
:
self
.
assertEquals
(
response_dict
,
{})
self
.
assertTrue
(
response_message
.
startswith
(
'Traceback'
))
else
:
self
.
assertNotEquals
(
response_dict
[
'data'
],
response_dict_data
)
self
.
assertEquals
(
response_dict
[
'mime'
],
response_dict_mime
)
def
ConversionScenarioList
(
self
):
def
ConversionScenarioList
(
self
):
"""
"""
Method used to convert files
Method used to convert files
...
@@ -184,13 +166,3 @@ class TestCase(unittest.TestCase):
...
@@ -184,13 +166,3 @@ class TestCase(unittest.TestCase):
for
scenario
in
scenarios
:
for
scenario
in
scenarios
:
self
.
_testRunConvert
(
*
scenario
)
self
.
_testRunConvert
(
*
scenario
)
def
GenerateScenarioList
(
self
):
"""
Method to verify run_generate
must be overwrited into subclasses
"""
return
[]
def
runGenerateScenarioList
(
self
,
scenarios
):
for
scenario
in
scenarios
:
self
.
_testRunGenerate
(
*
scenario
)
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