summaryrefslogtreecommitdiff
path: root/tests/glibext
diff options
context:
space:
mode:
Diffstat (limited to 'tests/glibext')
-rw-r--r--tests/glibext/portion.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/glibext/portion.py b/tests/glibext/portion.py
new file mode 100644
index 0000000..3e91969
--- /dev/null
+++ b/tests/glibext/portion.py
@@ -0,0 +1,17 @@
+
+from chrysacase import ChrysalideTestCase
+from pychrysalide.arch import vmpa
+from pychrysalide.glibext import BinaryPortion
+
+
+class TestWorks(ChrysalideTestCase):
+ """TestCase for pychrysalide.glibext.BinaryPortion"""
+
+ def testBasicBinaryPortion(self):
+ """Implement a basic binary portion."""
+
+ addr = vmpa(0, vmpa.VmpaSpecialValue.NO_VIRTUAL)
+
+ p = BinaryPortion(addr, 10)
+
+ self.assertEqual(p.range.addr, addr)