(self)
| 44 | |
| 45 | class TestExecution(unittest.TestCase): |
| 46 | def test(self): |
| 47 | file_path = os.path.join(test_utils.temp_folder, 'test.txt') |
| 48 | file_utils.write_file(file_path, |
| 49 | b'g\xc3\xbcltig\n l\xc3\xa4uft ver\xc3\xa4ndert f\xc3\xbcr ' |
| 50 | b'\xc4ndern \nPr\xfcfung g\xc3\xbcltig l\xc3\xa4uft \xe0\xa0\x80 \xf0\x92\x80\x80!', |
| 51 | byte_content=True) |
| 52 | |
| 53 | process_wrapper = POpenProcessWrapper(['cat', 'test.txt'], test_utils.temp_folder, {}) |
| 54 | process_wrapper.start() |
| 55 | |
| 56 | output = test_utils.wait_and_read(process_wrapper) |
| 57 | |
| 58 | self.assertEqual('gültig\n läuft verändert für �ndern \nPr�fung gültig läuft ࠀ 𒀀!', output) |
| 59 | |
| 60 | |
| 61 | class TestPrepareForWindows(unittest.TestCase): |
no test coverage detected