'Tests that mathjax is rendered in proper order.
When user types mathjax expressions into discussion editor, it should render in the proper
order.'

def test_mathjax_rendering_in_order(self):

    self.page.set_new_post_editor_value('Text    line    1    \n$$e[n]=d_1$$    \nText    line    2    \n$$e[n]=d_2$$')
    self.assertEqual(self.page.get_new_post_preview_text(), 'Text    line    1\nText    line    2')
