Change-Id: Ib19de453857a2732d9c70a24539a96cd7129613d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
"""Make sure that all required MTS test cases exist
in the XML test file.
"""
- if len(enabled_testcases) > 0:
+ if enabled_testcases:
# Verify if the MTS test case exists in the whole list of test
# cases declared in the test XML file
for enabled_testcase in enabled_testcases:
enabled_testcases = kwargs[
"testcases"] if "testcases" in kwargs else []
enabled_testcases_str = ''
- if len(enabled_testcases) > 0:
+ if enabled_testcases:
enabled_testcases_str = ' '.join(enabled_testcases)
check_ok = self.check_enabled_mts_test_cases(enabled_testcases)
if not check_ok: