Ejemplo n.º 1
0
 def test_range_one_too_big(self):
     # Off-by-one bug in Amazon's Glacier implementation
     # See: https://forums.aws.amazon.com/thread.jspa?threadID=106866&tstart=0
     # Workaround is to assume that if a (start, end] range appears to be
     # returned then that is what it is.
     self.assertEquals(
         Vault._range_string_to_part_index('0-4', 4), 0)
Ejemplo n.º 2
0
 def test_range_one_too_big(self):
     # Off-by-one bug in Amazon's Glacier implementation
     # See: https://forums.aws.amazon.com/thread.jspa?threadID=106866&tstart=0
     # Workaround is to assume that if a (start, end] range appears to be
     # returned then that is what it is.
     self.assertEquals(
         Vault._range_string_to_part_index('0-4', 4), 0)
Ejemplo n.º 3
0
 def test_range_end_mismatch(self):
     # End mismatch is OK, since the last part might be short
     self.assertEquals(
         Vault._range_string_to_part_index('0-2', 4), 0)
Ejemplo n.º 4
0
 def test_simple_range(self):
     self.assertEquals(
         Vault._range_string_to_part_index('0-3', 4), 0)
Ejemplo n.º 5
0
 def test_range_end_mismatch(self):
     # End mismatch is OK, since the last part might be short
     self.assertEquals(Vault._range_string_to_part_index('0-2', 4), 0)
Ejemplo n.º 6
0
 def test_simple_range(self):
     self.assertEquals(Vault._range_string_to_part_index('0-3', 4), 0)