'Verify the request for rendering a markdown document.'

def test_markdown(self):

    self.session.post.return_value = helper.mock.Mock(ok=True)
    text = '##Hello'
    mode = 'markdown'
    self.instance.markdown(text=text, mode=mode)
    self.post_called_with(url_for('markdown'), data={'text': text, 'mode': mode}, headers={})
