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_read_ipynb_file_cell_loading(self):
     nb = Notebook()
     nb.read_notebook("tests/test.ipynb")
     self.assertGreater(len(nb.cells), 0)
 def test_notebook_read_ipynb_file_cell_type(self):
     nb = Notebook()
     nb.read_notebook("tests/test.ipynb")
     self.assertIsInstance( nb.cells[0], Cell)
 def test_notebook_read_ipynb_file(self):
     nb = Notebook()
     nb.read_notebook("tests/test.ipynb")
     self.assertNotEqual(nb.notebook_format, None)
 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_read_ipynb_file_cell_type(self):
     nb = Notebook()
     nb.read_notebook("tests/test.ipynb")
     self.assertIsInstance(nb.cells[0], Cell)
 def test_notebook_read_ipynb_file_cell_loading(self):
     nb = Notebook()
     nb.read_notebook("tests/test.ipynb")
     self.assertGreater(len(nb.cells), 0)
 def test_notebook_read_ipynb_file(self):
     nb = Notebook()
     nb.read_notebook("tests/test.ipynb")
     self.assertNotEqual(nb.notebook_format, None)