Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
136d85ff
Commit
136d85ff
authored
Aug 22, 2015
by
4ast
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #157 from iovisor/bblanco_dev
Add test case for clearing of maps from python
parents
29856f67
4f746462
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tests/cc/test_stat1.py
tests/cc/test_stat1.py
+6
-0
No files found.
tests/cc/test_stat1.py
View file @
136d85ff
...
...
@@ -49,6 +49,12 @@ class TestBPFSocket(TestCase):
x
=
self
.
stats
[
key
]
with
self
.
assertRaises
(
KeyError
):
del
self
.
stats
[
key
]
self
.
stats
.
clear
()
self
.
assertEqual
(
len
(
self
.
stats
),
0
)
self
.
stats
[
key
]
=
leaf
self
.
assertEqual
(
len
(
self
.
stats
),
1
)
self
.
stats
.
clear
()
self
.
assertEqual
(
len
(
self
.
stats
),
0
)
if
__name__
==
"__main__"
:
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