aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/tests
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-03-19 09:51:37 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-03-19 10:35:57 +0100
commit489977b2de4fd448705debb2a48d65ad41650bca (patch)
tree5b639b28ec9282cd07c904d71545178b549898ec /xtesting/tests
parentc74456f3ad8f9144f0e773de68b75b249e876d47 (diff)
Fix regex when INSTALLER_TYPE is unset
Change-Id: I0ec012185f3c90b2a2c82b6f204ce332f3fa9c7f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/tests')
-rw-r--r--xtesting/tests/unit/ci/test_tier_handler.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/xtesting/tests/unit/ci/test_tier_handler.py b/xtesting/tests/unit/ci/test_tier_handler.py
index d1900103..97ba5ab3 100644
--- a/xtesting/tests/unit/ci/test_tier_handler.py
+++ b/xtesting/tests/unit/ci/test_tier_handler.py
@@ -80,12 +80,6 @@ class TierHandlerTesting(unittest.TestCase):
def test_get_ci_loop(self):
self.assertEqual(self.tier.get_ci_loop(), 'test_ci_loop')
- def test_testcase_is_none_in_item(self):
- self.assertEqual(tier_handler.TestCase.is_none("item"), False)
-
- def test_testcase_is_none_no_item(self):
- self.assertEqual(tier_handler.TestCase.is_none(None), True)
-
def test_testcase_is_compatible(self):
self.assertEqual(
self.testcase.is_compatible('test_installer', 'test_scenario'),
@@ -106,6 +100,16 @@ class TierHandlerTesting(unittest.TestCase):
False)
args[0].assert_called_once_with('test_installer', 'test_installer')
+ def test_testcase_is_compatible_4(self):
+ self.assertEqual(
+ self.testcase.is_compatible(None, 'test_scenario'), False)
+ self.assertEqual(
+ self.testcase.is_compatible('', 'test_scenario'), False)
+ self.assertEqual(
+ self.testcase.is_compatible('test_installer', None), False)
+ self.assertEqual(
+ self.testcase.is_compatible('test_installer', ''), False)
+
def test_testcase_get_name(self):
self.assertEqual(self.tier.get_name(), 'test_tier')