Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
24bad338
authored
Apr 19, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: test SaveAsTemplateOperation._rename
parent
8595c190
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
circle/vm/tests/test_operations.py
+7
-0
No files found.
circle/vm/tests/test_operations.py
View file @
24bad338
...
@@ -43,6 +43,13 @@ class SaveAsTemplateOperationTestCase(TestCase):
...
@@ -43,6 +43,13 @@ class SaveAsTemplateOperationTestCase(TestCase):
def
test_operation_registered
(
self
):
def
test_operation_registered
(
self
):
assert
SaveAsTemplateOperation
.
id
in
getattr
(
Instance
,
op_reg_name
)
assert
SaveAsTemplateOperation
.
id
in
getattr
(
Instance
,
op_reg_name
)
def
test_rename
(
self
):
assert
SaveAsTemplateOperation
.
_rename
(
"foo"
)
==
"foo v2"
assert
SaveAsTemplateOperation
.
_rename
(
"foo v2"
)
==
"foo v3"
assert
SaveAsTemplateOperation
.
_rename
(
"foo v"
)
==
"foo v v2"
assert
SaveAsTemplateOperation
.
_rename
(
"foo v9"
)
==
"foo v10"
assert
SaveAsTemplateOperation
.
_rename
(
"foo v111"
)
==
"foo v112"
class
ShutdownOperationTestCase
(
TestCase
):
class
ShutdownOperationTestCase
(
TestCase
):
def
test_operation_registered
(
self
):
def
test_operation_registered
(
self
):
...
...
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