def METHOD_NAME(
        self, func_name, action, principal, source_arn=ANY,
        error_code=None):
    expected_params = {
        'FunctionName': func_name, 'StatementId': ANY, 'Action': action,
        'Principal': principal, 'SourceArn': source_arn}
    self._stub_bifurcator(
        'add_permission', expected_params, error_code=error_code)