@mock.patch.object(kitsune.questions.forms, 'submit_ticket')
    def test_submit_ticket(self, submit_ticket):
        subject = 'A new ticket'
        body = 'Lorem ipsum dolor sit amet'
        cat = 'account'

        response = post(self.client,
                        'questions.marketplace_aaq_category',
                        {'subject': subject, 'body': body, 'category': cat},
                        args=['account'])
        eq_(200, response.status_code)
        body = 'Email: {email}\n{body}'.format(email=self.user.email, body=body)
        submit_ticket.assert_called_with(
            self.user.email, cat, subject, body, [])
Verify form post.
dataset/ETHPy150Open mozilla/kitsune/kitsune/questions/tests/test_marketplace.py/MarketplaceAaqTests.test_submit_ticket