def test_attached_when_policy_not_attached(self):
        self.conn.list_principal_policies.return_value = {'policies': []}
        result = salt_states['boto_iot.policy_attached']('test', 'myfunc', principal)
        self.assertTrue(result['result'])
        self.assertTrue(result['changes']['new']['attached'])
Tests attached on a policy that is not attached.
dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_iot_test.py/BotoIoTPolicyTestCase.test_attached_when_policy_not_attached