'Verify the http calls that are triggered by submit_ticket'

@mock.patch.object(questions.marketplace, 'get_zendesk')
def test_submit_ticket(self, get_zendesk):

    zd = FauxZendesk('https://appsmarket.zendesk.com', 'x@y.z', 'pwd')
    get_zendesk.return_value = zd
    submit_ticket('a@example.com', 'cat', 'subject', 'description', ['tag1', 'tag2'])
    zd.client.request.assert_called_with('https://appsmarket.zendesk.com/tickets.json?', 'POST', body='{"ticket":    {"requester_email":    "a@example.com",    "set_tags":    "cat",    "tags":    ["tag1",    "tag2"],    "description":    "description",    "subject":    "[TEST]    subject"}}', headers={'Content-Type': 'application/json', 'User-agent': 'Zendesk    Python    Library    v1.1.1'})
