diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-03-30 07:47:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-30 07:47:47 +0000 |
commit | 0417c4c4a0dba025bae165e964b11395e705c7f2 (patch) | |
tree | ce0bba8b1dfd03aecebc17e3df4892b91793814d /functest/tests/unit/ci/test_tier_handler.py | |
parent | 63ed148ebda8078668a88209eef154bffab700aa (diff) | |
parent | debf35a0dceaf0f9b2113ca5845c75214528bb8c (diff) |
Merge "More Unit Tests for ci directory"
Diffstat (limited to 'functest/tests/unit/ci/test_tier_handler.py')
-rw-r--r-- | functest/tests/unit/ci/test_tier_handler.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/functest/tests/unit/ci/test_tier_handler.py b/functest/tests/unit/ci/test_tier_handler.py index 01d99d7e..21df4098 100644 --- a/functest/tests/unit/ci/test_tier_handler.py +++ b/functest/tests/unit/ci/test_tier_handler.py @@ -41,6 +41,15 @@ class TierHandlerTesting(unittest.TestCase): self.dependency = tier_handler.Dependency('test_installer', 'test_scenario') + self.testcase.str = self.testcase.__str__() + self.dependency.str = self.dependency.__str__() + self.tier.str = self.tier.__str__() + + def test_split_text(self): + test_str = 'this is for testing' + self.assertEqual(tier_handler.split_text(test_str, 10), + ['this is ', 'for ', 'testing ']) + def test_add_test(self): self.tier.add_test(self.test) self.assertEqual(self.tier.tests_array, |