Example #1
0
    def test_IAMRolePolicyClass_status(self):
        test_instance = role_policy.IAMRolePolicy("ctx_node",
                                                  resource_id='role_id',
                                                  client=self.fake_client,
                                                  logger=None)

        self.assertIsNone(test_instance.status)
Example #2
0
 def test_IAMRolePolicyClass_delete(self):
     test_instance = role_policy.IAMRolePolicy("ctx_node",
                                               resource_id='role_id',
                                               client=self.fake_client,
                                               logger=None)
     self.fake_client.delete_role_policy = self.mock_return({"c": "d"})
     self.assertEqual(test_instance.delete({"a": "b"}), {"c": "d"})
     self.fake_client.delete_role_policy.assert_called_with(a='b')