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