blob: 3e919698a9409d1dcd763acdc4ded7e9c26c5fd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
|