summaryrefslogtreecommitdiffstats
path: root/vio
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2018-06-13 13:56:08 +0800
committerEthan Lynn <ethanlynnl@vmware.com>2018-06-13 13:56:08 +0800
commit8bde08e4be9a0183fb720d6a2b692343597eefcf (patch)
tree1c9263a468cfd2c75e9935e1fa3bc17422cad390 /vio
parentf96063a0a7a116cd4018fc621b5bd3f3624fa813 (diff)
Add test_convert_default_val
Add test_convert_default_val Change-Id: I2e740eb01538d649fb5cbc1304f93aa9ad1ce294 Issue-ID: MULTICLOUD-199 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
Diffstat (limited to 'vio')
-rw-r--r--vio/vio/tests/test_apiv2_controller.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/vio/vio/tests/test_apiv2_controller.py b/vio/vio/tests/test_apiv2_controller.py
index c769180..132a105 100644
--- a/vio/vio/tests/test_apiv2_controller.py
+++ b/vio/vio/tests/test_apiv2_controller.py
@@ -45,3 +45,8 @@ class TestAPIv2Controller(unittest.TestCase):
}
mock_kv3.return_value = mock.Mock()
cb._get_vim_auth_session("vmware_vio", "tenant1")
+
+ def test_convert_default_val(self):
+ self.assertEqual(None, cb._convert_default_value("None"))
+ self.assertEqual(True, cb._convert_default_value("true"))
+ self.assertEqual(False, cb._convert_default_value("false"))