예제 #1
0
 def test_add_regional_client_exists(self):
     test = KMSMasterKeyProvider()
     test._regional_clients['ex_region_name'] = sentinel.existing_client
     test.add_regional_client('ex_region_name')
     assert not self.mock_boto3_session.called
 def test_add_regional_client_exists(self):
     test = KMSMasterKeyProvider(
         botocore_session=self.botocore_no_region_session)
     test._regional_clients["ex_region_name"] = sentinel.existing_client
     test.add_regional_client("ex_region_name")
     assert not self.mock_boto3_session.called