summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-05 11:38:06 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-05 11:39:50 -0500
commit7519f742923a31599c56dfc5db9aad6901bfce73 (patch)
tree8d99bca4a0effbda93537e58ef3da70a5f281494 /tests/test_utils.py
parent34f00eda97d44922896beac608a9d4a085ae6e0d (diff)
downloadcmd2-git-7519f742923a31599c56dfc5db9aad6901bfce73.tar.gz
Added remove_settable() since cmd2 has add_settable()
Documented Settable.onchange_cb
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 804e58be..5030ce0e 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -537,11 +537,13 @@ def test_str_to_bool_true():
assert cu.str_to_bool('true')
assert cu.str_to_bool('True')
assert cu.str_to_bool('TRUE')
+ assert cu.str_to_bool('tRuE')
def test_str_to_bool_false():
assert not cu.str_to_bool('false')
assert not cu.str_to_bool('False')
assert not cu.str_to_bool('FALSE')
+ assert not cu.str_to_bool('fAlSe')
def test_str_to_bool_invalid():
with pytest.raises(ValueError):