def test_convert_notebook(self):
    nb = notebook.read_markdown(_markdown_src)
    (body, _) = rst.convert_notebook(nb, {})
    lines = body.split('\n')
    for l in lines:
        if l.startswith(':math:`x=1`'):
            self.assertEqual(l, ':math:`x=1`, :numref:`sec_2`')
def test_convert_notebook(self):
    nb = notebook.read_markdown(_markdown_src)
    (body, _) = rst.convert_notebook(nb, {})
    lines = body.split('\n')
    for l in lines:
        if l.startswith(':math:`x=1`'):
            self.assertEqual(l, ':math:`x=1`, :numref:`sec_2`')