Commit 136d85ff authored by 4ast's avatar 4ast

Merge pull request #157 from iovisor/bblanco_dev

Add test case for clearing of maps from python
parents 29856f67 4f746462
......@@ -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()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment