Fix unit tests
This commit is contained in:
parent
4f72f0ccbb
commit
6aef654cf1
1 changed files with 2 additions and 0 deletions
|
|
@ -82,6 +82,8 @@ class TestEvMenu(TestCase):
|
||||||
self.assertIsNotNone(
|
self.assertIsNotNone(
|
||||||
bool(node_text),
|
bool(node_text),
|
||||||
"node: {}: node-text is None, which was not expected.".format(nodename))
|
"node: {}: node-text is None, which was not expected.".format(nodename))
|
||||||
|
if isinstance(node_text, tuple):
|
||||||
|
node_text, helptext = node_text
|
||||||
node_text = ansi.strip_ansi(node_text.strip())
|
node_text = ansi.strip_ansi(node_text.strip())
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
node_text.startswith(compare_text),
|
node_text.startswith(compare_text),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue