Beispiel #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
Beispiel #2
0
 def test_location_from_xlogfile_name_offset(self):
     assert xlog.location_from_xlogfile_name_offset(
         '000000030000000A00000012', 0x345678) == 'A/12345678'
Beispiel #3
0
 def test_location_from_xlogfile_name_offset(self):
     assert xlog.location_from_xlogfile_name_offset(
         '000000030000000A00000012', 0x345678) == 'A/12345678'