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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
995afe81
authored
Apr 26, 2019
by
Adam Torok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Snapshot basic tests
parent
112602d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
test/interface/unit/test_snapshot.py
+19
-0
No files found.
test/interface/unit/test_snapshot.py
0 → 100644
View file @
995afe81
import
unittest
from
interface.storage.Snapshot
import
Snapshot
class
TestSnapshot
(
unittest
.
TestCase
):
def
test_fields
(
self
):
snapshot
=
Snapshot
(
'id'
,
'volume_id'
,
1
,
'status'
,
'created_at'
)
self
.
assertEqual
(
snapshot
.
id
,
'id'
)
self
.
assertEqual
(
snapshot
.
volume_id
,
'volume_id'
)
self
.
assertEqual
(
snapshot
.
size
,
1
)
self
.
assertEqual
(
snapshot
.
status
,
'status'
)
self
.
assertEqual
(
snapshot
.
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