Beispiel #1
0
 def test_get_closest_snap_id__123_2(self):
     sa = SnapshotArray(1)
     self.assertEqual(2, sa.get_closest_snap_id([1, 2, 3], 2))
Beispiel #2
0
 def test_get_closest_snap_id__23_1(self):
     sa = SnapshotArray(1)
     self.assertEqual(None, sa.get_closest_snap_id([2, 3], 1))
Beispiel #3
0
 def test_get_closest_snap_id__12_1(self):
     sa = SnapshotArray(1)
     self.assertEqual(1, sa.get_closest_snap_id([1, 2], 1))
Beispiel #4
0
 def test_get_closest_snap_id__13_4(self):
     sa = SnapshotArray(1)
     self.assertEqual(3, sa.get_closest_snap_id([1, 3], 4))