From 045ff342097ba31bf443e1db5f548226ede1220f Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 29 Jun 2021 13:05:28 +0300 Subject: tests: test_commands: Add extra check for when an error occurs --- tests/unit/test_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/test_commands.py b/tests/unit/test_commands.py index f36ba55..e644e1a 100644 --- a/tests/unit/test_commands.py +++ b/tests/unit/test_commands.py @@ -149,3 +149,4 @@ class TestCommands(unittest.TestCase): """Test that an incorrect cmd is processed correctly""" result = run_cmd("echoo test") self.assertEqual(127, result.get("code")) + self.assertIn("not found", result.get("output")) -- cgit v1.2.3