@patch("twilio.rest.resources.base.make_twilio_request")
    def test_create_role(self, mock):
        resp = create_mock_json("tests/resources/ip_messaging/role_instance.json")
        resp.status_code = 201
        mock.return_value = resp

        list_resource.create("Test Role", "deployment", "createChannel")
        uri = "%s/Roles" % (BASE_URI)
        mock.assert_called_with(
            "POST",
            uri,
            data={
                'FriendlyName': 'Test Role',
                'Type': 'deployment',
                'Permission': 'createChannel'
            },
            auth=AUTH,
            use_json_extension=False
        )
dataset/ETHPy150Open twilio/twilio-python/tests/ip_messaging/test_roles.py/RoleTest.test_create_role/original