diff --git a/test_shell_command.py b/test_shell_command.py index d9285f4..f69edad 100644 --- a/test_shell_command.py +++ b/test_shell_command.py @@ -173,11 +173,11 @@ """ Test method ShellCommand.process_pattern(). """ # True on EOF (0) - self.assertEqual(self.command.process_pattern(0), True) + self.assertTrue(self.command.process_pattern(0)) # False on anythingthing else - self.assertEqual(self.command.process_pattern(1), False) - self.assertEqual(self.command.process_pattern(-1), False) - self.assertEqual(self.command.process_pattern(None), False) + self.assertFalse(self.command.process_pattern(1)) + self.assertFalse(self.command.process_pattern(-1)) + self.assertFalse(self.command.process_pattern(None)) # The following two will require mocking of pexpect? def test_run(self):