Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Seibert
xtreemfs_client
Commits
2d07bc48
Commit
2d07bc48
authored
Apr 10, 2018
by
Felix Seibert
Browse files
implement test_value_error
parent
bb2f6609
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_dataDistribution.py
View file @
2d07bc48
...
...
@@ -63,7 +63,15 @@ class TestDataDistribution(unittest.TestCase):
self
.
assertTrue
(
max_osd_total_folder_size
>
osd_capacity
)
def
test_value_error
(
self
):
pass
distribution
=
dataDistribution
.
DataDistribution
()
distribution
.
add_osd_list
(
create_test_osd_list
(
1
))
try
:
distribution
.
add_folders
(
create_test_folder_list
(
1
,
1
),
random_osd_assignment
=
True
,
ignore_osd_capacities
=
False
)
except
ValueError
:
return
# expect value error
self
.
fail
(
"expect value error!"
)
def
test_random_distribution_respecting_capacities
(
self
):
pass
...
...
Write
Preview
Supports
Markdown
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