NO-JIRA: bad_configuration test: Print output when AttributeError is absent
Asserting that the error is absent is true but not very helpful
for debug purposes.
Printing the output on test failure  may expose environment issues
that have nothing to do with router and the config file processing
but are causing the test to fail.
@@ -198,7 +198,9 @@ class RouterTestIdFailCtrlChar(TestCase):
p.teardown()
except Exception as e:
raise Exception("%s\n%s" % (e, out))
- self.assertTrue("AttributeError" in out)
+ if "AttributeError" not in out:
+ print("output: ", out)
+ assert False, "AttributeError not in process output"
class RouterTestIdFailWhiteSpace(TestCase):
"""
@@ -236,4 +238,6 @@ class RouterTestIdFailWhiteSpace(TestCase):
p.teardown()
except Exception as e:
raise Exception("%s\n%s" % (e, out))
- self.assertTrue("AttributeError" in out)
+ if "AttributeError" not in out:
+ print("output: ", out)
+ assert False, "AttributeError not in process output"
