[tests] improve output

see #491
This commit is contained in:
Tobias Witek 2019-12-22 14:24:44 +01:00
parent d52b2906e4
commit 14813f5fee

View file

@ -67,7 +67,7 @@ class TestConfig(unittest.TestCase):
cfg = Config(["-l", "modules"])
result = self.stdout.getvalue()
for module in all_modules():
self.assertTrue(module["name"] in result)
self.assertTrue(module["name"] in result, "module {} missing in result".format(module["name"]))
def test_invalid_list(self):
with self.assertRaises(SystemExit):