Exemple #1
0
    def test_merge(self):
        memdesc1 = MemoryDescriptor(0, 0, True, 0x1000, 0x2000)
        memdesc2 = MemoryDescriptor(0, 0, True, 0, 0x3000)

        memdesc1.merge(memdesc2)
        self.assertEquals(memdesc1.get_low(), 0)
        self.assertEquals(memdesc1.get_high(), 0x3000)
Exemple #2
0
    def test_merge(self):
        memdesc1 = MemoryDescriptor(0, 0, True, 0x1000, 0x2000)
        memdesc2 = MemoryDescriptor(0, 0, True, 0, 0x3000)

        memdesc1.merge(memdesc2)
        self.assertEquals(memdesc1.get_low(), 0)
        self.assertEquals(memdesc1.get_high(), 0x3000)
Exemple #3
0
 def test_getlow(self):
     memdesc = MemoryDescriptor(0, 0, True, 0x37, 0x1000)
     self.assertEquals(memdesc.get_low(), 0x37)
Exemple #4
0
 def test_getlow(self):
     memdesc = MemoryDescriptor(0, 0, True, 0x37, 0x1000)
     self.assertEquals(memdesc.get_low(), 0x37)