def test_get_key_arn_cached(self, kms_mock): self.assertEqual( keymanager.get_key_arn('mockalias'), 'mocked:arn' )
def test_get_key_arn_cached(self, kms_mock): self.assertEqual(keymanager.get_key_arn('mockalias'), 'mocked:arn')
def test_get_key_arn(self, kms_mock): kms_mock.return_value = {'KeyMetadata': {'Arn': 'mocked:arn'}} self.assertEqual( keymanager.get_key_arn('mockalias'), 'mocked:arn' )
def test_get_key_arn(self, kms_mock): kms_mock.return_value = {'KeyMetadata': {'Arn': 'mocked:arn'}} self.assertEqual(keymanager.get_key_arn('mockalias'), 'mocked:arn')