def test_attached_with_failure(self):
        self.conn.list_principal_policies.return_value = {'policies': []}
        self.conn.attach_principal_policy.side_effect = ClientError(error_content, 'attach_principal_policy')
        result = salt_states['boto_iot.policy_attached']('test', policy_ret['policyName'], principal)
        self.assertFalse(result['result'])
        self.assertEqual(result['changes'], {})
test that proxy authentication is possible
dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_iot_test.py/BotoIoTPolicyTestCase.test_attached_with_failure--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/SessionPool.py/TestConnection.testProxyAuth