diff options
author | Georg Brandl <georg@python.org> | 2009-04-29 12:26:38 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-29 12:26:38 +0200 |
commit | 9329d39edb0d6097aa8c0fd78f35b03bccede49b (patch) | |
tree | 280c05f340e849037fb53c75950cfb6f7ece1c7c /tests | |
parent | 42f0a20d333cde7f2824feec9f9752dda3d2a24f (diff) | |
download | sphinx-9329d39edb0d6097aa8c0fd78f35b03bccede49b.tar.gz |
Bring some more sanity into quickstart validators.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_quickstart.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py index 4441ab23..1a76fbd2 100644 --- a/tests/test_quickstart.py +++ b/tests/test_quickstart.py @@ -65,9 +65,9 @@ def test_do_prompt(): qs.do_prompt(d, 'k2', 'Q2') assert d['k2'] == 'v2' qs.do_prompt(d, 'k4', 'Q4', validator=qs.boolean) - assert d['k4'] == 'yes' + assert d['k4'] is True qs.do_prompt(d, 'k5', 'Q5', validator=qs.boolean) - assert d['k5'] == 'no' + assert d['k5'] is False raises(AssertionError, qs.do_prompt, d, 'k6', 'Q6', validator=qs.boolean) |