def test_notebook_list(self): with TemporaryDirectory() as td: km = NotebookManager(notebook_dir=td) filename = 'new_test.ipynb' filepath = os.path.join(td, filename) notebook_id = km.new_notebook(ndir=td, name=filename) n = {'name':filepath, 'notebook_id':notebook_id} correct = [] correct.append(n) nlist = km.list_notebooks() assert nlist[0]['name'] == correct[0]['name'] assert nlist[0]['notebook_id'] == correct[0]['notebook_id']