[sagenb] 52/157: docstring modified

felix salfelder felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:48 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 4b635958dc9b80914d761aa342e3202ebb4c95cf
Author: J. Miguel Farto <migeruhito at gmail.com>
Date:   Tue Sep 16 22:41:28 2014 +0200

    docstring modified
---
 sagenb/notebook/user_manager.py | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/sagenb/notebook/user_manager.py b/sagenb/notebook/user_manager.py
index 381ad36..bf7d89a 100644
--- a/sagenb/notebook/user_manager.py
+++ b/sagenb/notebook/user_manager.py
@@ -384,6 +384,28 @@ class SimpleUserManager(UserManager):
             sage: U.user('admin')
             admin
 
+        TESTS::
+
+            sage: U.user('william')
+            Traceback (most recent call last):
+            ...
+            LookupError: no user 'william'
+
+            sage: U._user('william')
+            Traceback (most recent call last):
+            ...
+            LookupError: no user 'william'
+
+            sage: U.user('hello/')
+            Traceback (most recent call last):
+            ...
+            ValueError: no user 'hello/'
+
+            sage: U._user('hello/')
+            Traceback (most recent call last):
+            ...
+            LookupError: no user 'hello/'
+
         """
         if username in ['pub', '_sage_']:
             self.add_user(username, '', '', account_type='user', force=True)

-- 
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