summaryrefslogtreecommitdiff
path: root/test/units/test_constants.py
diff options
context:
space:
mode:
authorRick Elrod <rick@elrod.me>2020-07-07 18:41:19 -0500
committerGitHub <noreply@github.com>2020-07-07 18:41:19 -0500
commitf3ef4ed076552b7ae560fd7b7e071f34ae70c222 (patch)
tree90e46e52ec40608ce8747f17392d99e032824d4c /test/units/test_constants.py
parent41414ed47548ac0edcd4c7c83c0c3bd7b6011546 (diff)
downloadansible-f3ef4ed076552b7ae560fd7b7e071f34ae70c222.tar.gz
Remove some constants.py deprecated items (#70466)
Change: - Remove mk_boolean - Remove BECOME_METHODS - Remove get_config Test Plan: - CI, removed mk_boolean unit tests Tickets: - Fixes #69678 Signed-off-by: Rick Elrod <rick@elrod.me>
Diffstat (limited to 'test/units/test_constants.py')
-rw-r--r--test/units/test_constants.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/units/test_constants.py b/test/units/test_constants.py
index 4cf2f7f9a5..a206d2310f 100644
--- a/test/units/test_constants.py
+++ b/test/units/test_constants.py
@@ -92,31 +92,3 @@ def cwd():
os.getcwd = old_cwd
if hasattr(os, 'getcwdu'):
os.getcwdu = old_cwdu
-
-
-class TestMkBoolean:
- def test_bools(self):
- assert constants.mk_boolean(True) is True
- assert constants.mk_boolean(False) is False
-
- def test_none(self):
- assert constants.mk_boolean(None) is False
-
- def test_numbers(self):
- assert constants.mk_boolean(1) is True
- assert constants.mk_boolean(0) is False
- assert constants.mk_boolean(0.0) is False
-
-# Current mk_boolean doesn't consider these to be true values
-# def test_other_numbers(self):
-# assert constants.mk_boolean(2) is True
-# assert constants.mk_boolean(-1) is True
-# assert constants.mk_boolean(0.1) is True
-
- def test_strings(self):
- assert constants.mk_boolean("true") is True
- assert constants.mk_boolean("TRUE") is True
- assert constants.mk_boolean("t") is True
- assert constants.mk_boolean("yes") is True
- assert constants.mk_boolean("y") is True
- assert constants.mk_boolean("on") is True