def test_if_notebooks_are_the_same_from_different_input_types(self):
     nb = Notebook()
     nb.read_notebook("tests/test.ipynb")
     nb2 = Notebook()
     nb2.read_py("tests/test.py")
     self.assertEqual(nb.to_dict(), nb.to_dict())
 def test_if_notebooks_are_the_same_from_different_input_types(self):
     nb = Notebook()
     nb.read_notebook("tests/test.ipynb")
     nb2 = Notebook()
     nb2.read_py("tests/test.py")
     self.assertEqual(nb.to_dict(), nb.to_dict())
 def test_notebook_to_dict_method(self):
     nb = Notebook()
     nb.add_descriptive_data(['', "# <nbformat>4</nbformat>"])
     self.assertEquals(nb.to_dict()["nbformat"], 4)
 def test_notebook_to_dict_method(self):
     nb = Notebook()
     nb.add_descriptive_data(['', "# <nbformat>4</nbformat>"])
     self.assertEquals(nb.to_dict()["nbformat"], 4)