def METHOD_NAME(self):
    def _cfg_set(
        gh_config_name="foo",
        ssh_url='ssh://test.foo',
        http_url='https://test.foo',
        api_url='made-up-api-url',
        disable_tls_validation=False,
        webhook_token='made-up-token',
        available_protocols=['https', 'ssh'],
        tu_username='made-up-name',
        tu_password='made-up-password',
        tu_private_key='first key line \n second key line \n third key line',
        tu_auth_token='made-up-token',
        tu_email_address='username@host.domain',
    ):
        cfg_set_mock = MagicMock()
        gh_cfg = GithubConfig(
            name=gh_config_name,
            raw_dict={
                'purpose_labels': ['ci'],
                'sshUrl': ssh_url,
                'httpUrl': http_url,
                'apiUrl': api_url,
                'disable_tls_validation': disable_tls_validation,
                'webhook_token': webhook_token,
                'available_protocols': available_protocols,
                'technical_users': [{
                        'username': tu_username,
                        'password': tu_password,
                        'privateKey': tu_private_key,
                        'authToken': tu_auth_token,
                        'emailAddress': tu_email_address,
                }],
            },
            type_name='github',
        )
        cfg_set_mock.github.return_value = gh_cfg
        cfg_set_mock._cfg_elements = lambda cfg_type_name: [gh_cfg]
        return cfg_set_mock
    return _cfg_set