コード例 #1
0
ファイル: test_layer2.py プロジェクト: B-Rich/boto
 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)
コード例 #2
0
ファイル: test_layer2.py プロジェクト: wuxi20/Pythonista
 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)
コード例 #3
0
ファイル: test_layer2.py プロジェクト: B-Rich/boto
 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)
コード例 #4
0
ファイル: test_layer2.py プロジェクト: B-Rich/boto
 def test_simple_range(self):
     self.assertEquals(
         Vault._range_string_to_part_index('0-3', 4), 0)
コード例 #5
0
ファイル: test_layer2.py プロジェクト: sebadima/boto3k
 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)
コード例 #6
0
ファイル: test_layer2.py プロジェクト: sebadima/boto3k
 def test_simple_range(self):
     self.assertEquals(Vault._range_string_to_part_index('0-3', 4), 0)