def test_exe(self):
        result = core.exe('echo 1', '')

        self.assertEqual(result.stdout, '1')
        self.assertEqual(str(result), '1')
        self.assertTrue(result == '1')
        self.assertEqual(result.__bool__(), True)

        self.assertEqual(len(self.stdout_mock.lines), 0)
        self.assertEqual(len(self.stderr_mock.lines), 0)
dataset/ETHPy150Open lamerman/shellpy/shellpython/tests/test_unix_core.py/TestExecute.test_exe/original