kumquat-buildroot/support/testing/tests/package/sample_python_smmap2.py
Adam Duskett f81f673a78 support/testing: add smmap2 test
Add a simple test case that imports the module and instantiates a new
SlidingWindowMapManager class.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-12-16 23:28:08 +01:00

7 lines
168 B
Python

# Taken from smmap/test/test_tutorial.py
import smmap
mman = smmap.SlidingWindowMapManager()
assert mman.num_file_handles() == 0
assert mman.mapped_memory_size() == 0