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)