From: Jelte Jansen Date: Thu, 28 Feb 2013 14:45:32 +0000 (+0100) Subject: [2713] Fix test docstrings X-Git-Tag: bind10-1.1.0beta1-release~68^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a09e9bd49e0dfa6f4eb9b50da0e1d8b7e76affa2;p=thirdparty%2Fkea.git [2713] Fix test docstrings --- diff --git a/src/bin/usermgr/tests/b10-cmdctl-usermgr_test.py b/src/bin/usermgr/tests/b10-cmdctl-usermgr_test.py index 4f71cee144..3d0d4afba8 100644 --- a/src/bin/usermgr/tests/b10-cmdctl-usermgr_test.py +++ b/src/bin/usermgr/tests/b10-cmdctl-usermgr_test.py @@ -313,7 +313,7 @@ Options: def test_prompt_for_password_empty(self): """ Check that the method that prompts for a password verifies that - the same value is entered twice + the value entered is not empty """ # returns an empty string until it has been called over 10 # times @@ -336,6 +336,11 @@ Options: self.assertEqual(expected_output, ''.join(pc.stdout_lines)) def test_prompt_for_user(self): + """ + Test that the method that prompts for a username verifies that + is not empty, and that it exists (or does not, depending on the + action that is specified) + """ new_input_called = 0 input_results = [ '', '', 'existinguser', 'nonexistinguser', '', '', 'nonexistinguser', 'existinguser' ]