improvement test
@@ -63,12 +63,18 @@ def test_command_unicode_error(buffer_connection, command_output_and_expected_re
cmd = CdUnicodeError(connection=buffer_connection.moler_connection, path="/home/user/")
cmd.start()
+ MolerTest.sleep(sleep_time)
buffer_connection.moler_connection.data_received(cmd_start_string.encode("utf-8"))
+ MolerTest.sleep(sleep_time)
cmd._ignore_unicode_errors = True
cmd.raise_unicode = True
+ MolerTest.sleep(sleep_time)
buffer_connection.moler_connection.data_received("abc".encode("utf-8"))
+ MolerTest.sleep(sleep_time)
cmd.raise_unicode = False
+ MolerTest.sleep(sleep_time)
buffer_connection.moler_connection.data_received(command_output.encode("utf-8"))
+ MolerTest.sleep(sleep_time)
cmd.await_done()
