def test_location_from_xlogfile_name_offset(self, size, name, offset, lsn): assert xlog.location_from_xlogfile_name_offset(name, offset, 1 << size) == lsn
def test_location_from_xlogfile_name_offset(self): assert xlog.location_from_xlogfile_name_offset( '000000030000000A00000012', 0x345678) == 'A/12345678'