Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
interface-openstack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dbcdad9d
authored
Apr 26, 2019
by
Adam Torok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Volume basic tests
parent
995afe81
Pipeline
#703
passed with stage
in 38 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
test/interface/unit/test_volume.py
+20
-0
No files found.
test/interface/unit/test_volume.py
0 → 100644
View file @
dbcdad9d
import
unittest
from
interface.storage.Volume
import
Volume
class
TestVolume
(
unittest
.
TestCase
):
def
test_fields
(
self
):
volume
=
Volume
(
'id'
,
'image_id'
,
1
,
False
,
'status'
,
'created_at'
)
self
.
assertEqual
(
volume
.
id
,
'id'
)
self
.
assertEqual
(
volume
.
image_id
,
'image_id'
)
self
.
assertEqual
(
volume
.
size
,
1
)
self
.
assertEqual
(
volume
.
bootable
,
False
)
self
.
assertEqual
(
volume
.
status
,
'status'
)
self
.
assertEqual
(
volume
.
created_at
,
'created_at'
)
if
__name__
==
'__main__'
:
unittest
.
main
()
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