@patch('simple_salesforce.Salesforce')
def test_connection__no_connected_app(self, mock_sf):
    org_config = Mock()
    proj_config = Mock()
    proj_config.keychain.get_service.side_effect = ServiceNotConfigured
    get_simple_salesforce_connection(proj_config, org_config)
    mock_sf.return_value.headers.setdefault.assert_called_once_with('Sforce-Call-Options', 'client={}'.format('CumulusCI/{}'.format(__version__)))
@patch('simple_salesforce.Salesforce')
def test_connection__no_connected_app(self, mock_sf):
    org_config = Mock()
    proj_config = Mock()
    proj_config.keychain.get_service.side_effect = ServiceNotConfigured
    get_simple_salesforce_connection(proj_config, org_config)
    mock_sf.return_value.headers.setdefault.assert_called_once_with('Sforce-Call-Options', 'client={}'.format('CumulusCI/{}'.format(__version__)))