pyo3/extensions/test_btree.py

18 lines
353 B
Python
Raw Normal View History

2016-04-17 13:53:57 +00:00
import random
import unittest
import btree
class TestBTreeSet(unittest.TestCase):
def setUp(self):
self.set = btree.BTreeSet()
def test_empty(self):
# make sure the initial set is empty
self.assertEqual(bool(self.set), False)
self.assertEqual(len(self.set), 0)
if __name__ == '__main__':
unittest.main()