[sagenb] 110/179: fix doctests in sagenb/notebook/cell.py

felix salfelder felix-guest at moszumanska.debian.org
Tue May 6 12:05:15 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit 815f1d55113488c6ced23a18ab97e314f61fa558
Author: P Purkayastha <ppurka at gmail.com>
Date:   Fri May 3 13:11:43 2013 +0800

    fix doctests in sagenb/notebook/cell.py
---
 sagenb/notebook/cell.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sagenb/notebook/cell.py b/sagenb/notebook/cell.py
index 35e43f4..c7969d4 100644
--- a/sagenb/notebook/cell.py
+++ b/sagenb/notebook/cell.py
@@ -225,7 +225,8 @@ class Cell_generic(object):
             sage: C.worksheet()
             'worksheet object'
             sage: nb = sagenb.notebook.notebook.Notebook(tmp_dir()+'.sagenb')
-            sage: W = nb.create_new_worksheet('Test', 'admin')
+            sage: nb.user_manager().add_user('sage','sage','sage at sagemath.org',force=True)
+            sage: W = nb.create_new_worksheet('Test', 'sage')
             sage: C = sagenb.notebook.cell.Cell(0, '2+3', '5', W)
             sage: C.worksheet() is W
             True
@@ -1168,7 +1169,8 @@ class Cell(Cell_generic):
         EXAMPLES::
 
             sage: nb = sagenb.notebook.notebook.Notebook(tmp_dir()+'.sagenb')
-            sage: W = nb.create_new_worksheet('Test', 'admin')
+            sage: nb.user_manager().add_user('sage','sage','sage at sagemath.org',force=True)
+            sage: W = nb.create_new_worksheet('Test', 'sage')
             sage: W.edit_save('foo\n{{{\n2+3\n///\n5\n}}}bar\n{{{\n2+8\n///\n10\n}}}')
             sage: W.new_cell_after(1, "2^2")
             Cell 4: in=2^2, out=

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list