def test_addBlock_overlapping(self): m = MMU([]) m.addBlock(128, 128) with self.assertRaises(MemoryRangeError): m.addBlock(0, 129) with self.assertRaises(MemoryRangeError): m.addBlock(255, 128)
def test_addBlock_overlapping(self): m = MMU([]) m.addBlock(128, 128) with self.assertRaises(MemoryRangeError): m.addBlock(0, 129) with self.assertRaises(MemoryRangeError): m.addBlock(255, 128)
def test_addBlock(self): m = MMU([]) m.addBlock(0, 128, False, None) m.addBlock(128, 128, True, None)
def test_addBlock(self): m = MMU([]) m.addBlock(0, 128, False, None) m.addBlock(128, 128, True, None)