-
Committer:
Vincent Ladeuil
-
Date:
2007-02-19 21:08:27 UTC
-
mto:
(2326.1.1 jam-integration)
-
mto:
This revision was merged to the branch mainline in
revision
2327.
-
Revision ID:
v.ladeuil+lp@free.fr-20070219210827-qcz46is44zdpfjxr
Add a UIFactory.get_login method, fix tests.
* bzrlib/ui/text.py:
(TextUIFactory.prompt): Made usable for more than get_boolean by
deleting the [y/n] part.
(TextUIFactory.get_login): New method.
* bzrlib/ui/__init__.py:
(UIFactory.get_login): New method.
(CLIUIFactory.get_boolean): Add the [y/n] part deleted from
prompt().
* bzrlib/tests/test_ui.py:
(FakeTextUIFactory): New test class.
(UITests.test_silent_factory): Add no output testing.
(UITests.test_text_factory_ascii_password,
UITests.test_text_factory_utf8_password,
UITests.test_text_factory_ascii_password,
UITests.test_text_factory_utf8_password): New tests replacing
test_text_factory.
(UITests.test_text_factory_prompts_and_clears): Use a
DotsProgressBar so that we can run the tests from a dumb terminal
too.
* bzrlib/tests/__init__.py:
(FakeStdin): New test class.