Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
9ba28903
Commit
9ba28903
authored
Mar 14, 2019
by
Samuel GAIST
Browse files
[test][stats] Code cleanup
parent
17bf3313
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/test/test_stats.py
View file @
9ba28903
...
...
@@ -41,8 +41,8 @@ from ..stats import Statistics
def
test_prototype
():
obj
=
Statistics
()
# creates from prototype
assert
"cpu"
in
obj
.
_data
assert
"memory"
in
obj
.
_data
assert
"data"
in
obj
.
_data
assert
"files"
in
obj
.
data
nose
.
tools
.
assert_true
(
"cpu"
in
obj
.
_data
)
nose
.
tools
.
assert_true
(
"memory"
in
obj
.
_data
)
nose
.
tools
.
assert_true
(
"data"
in
obj
.
_data
)
nose
.
tools
.
assert_true
(
"files"
in
obj
.
data
)
nose
.
tools
.
eq_
(
len
(
obj
.
data
[
"files"
]),
0
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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