def test_relative(self):
    line = '0x000055555557259c <+11340>:\tXYZ'
    (address, rest) = asm2cfg.parse_address(line)
    self.assertIsNot(address, None)
    self.assertEqual(address.abs, 93824992355740)
    self.assertIs(address.base, None)
    self.assertEqual(address.offset, 11340)
    self.assertEqual(rest, '\tXYZ')
def test_relative(self):
    line = '0x000055555557259c <+11340>:\tXYZ'
    (address, rest) = asm2cfg.parse_address(line)
    self.assertIsNot(address, None)
    self.assertEqual(address.abs, 93824992355740)
    self.assertIs(address.base, None)
    self.assertEqual(address.offset, 11340)
    self.assertEqual(rest, '\tXYZ')