@patch('bedrock.mozorg.views.requests.post')
def test_sf_form_proxy(self, post_patch):
    new_mock = Mock()
    new_mock.status_code = 200
    post_patch.return_value = new_mock
    with self.activate('en-US'):
        url = reverse('mozorg.partnerships')
        resp = self.client.post(url, {'first_name': 'The', 'last_name': 'Dude', 'title': 'Abider of things', 'company': 'Urban Achievers', 'email': 'example@example.com'}, HTTP_X_REQUESTED_WITH='XMLHttpRequest')
    self.assertEqual(resp.status_code, 200)
    resp_data = simplejson.loads(resp.content)
    self.assertEqual(resp_data['msg'], 'ok')
    post_patch.assert_called_once_with(ANY, {'first_name': u'The', 'last_name': u'Dude', 'description': u'', 'retURL': 'http://www.mozilla.org/en-US/about/partnerships?success=1', 'title': u'Abider of things', 'URL': u'', 'company': u'Urban Achievers', 'oid': '00DU0000000IrgO', 'phone': u'', 'street': u'', 'zip': u'', 'city': u'', 'state': u'', 'country': u'', 'mobile': u'', '00NU0000002pDJr': [], 'email': u'example@example.com', 'lead_source': 'www.mozilla.org/about/partnerships/'})
@patch('bedrock.mozorg.views.requests.post')
def test_sf_form_proxy(self, post_patch):
    new_mock = Mock()
    new_mock.status_code = 200
    post_patch.return_value = new_mock
    with self.activate('en-US'):
        url = reverse('mozorg.partnerships')
        resp = self.client.post(url, {'first_name': 'The', 'last_name': 'Dude', 'title': 'Abider of things', 'company': 'Urban Achievers', 'email': 'example@example.com'}, HTTP_X_REQUESTED_WITH='XMLHttpRequest')
    self.assertEqual(resp.status_code, 200)
    resp_data = simplejson.loads(resp.content)
    self.assertEqual(resp_data['msg'], 'ok')
    post_patch.assert_called_once_with(ANY, {'first_name': u'The', 'last_name': u'Dude', 'description': u, 'retURL': 'http://www.mozilla.org/en-US/about/partnerships?success=1', 'title': u'Abider of things', 'URL': u, 'company': u'Urban Achievers', 'oid': '00DU0000000IrgO', 'phone': u, 'street': u, 'zip': u, 'city': u, 'state': u, 'country': u, 'mobile': u, '00NU0000002pDJr': [], 'email': u'example@example.com', 'lead_source': 'www.mozilla.org/about/partnerships/'})