fix test for su command
Su command module.
"""
-__author__ = 'Agnieszka Bylica'
-__copyright__ = 'Copyright (C) 2018, Nokia'
-__email__ = 'agnieszka.bylica@nokia.com'
+__author__ = 'Agnieszka Bylica, Marcin Usielski'
+__copyright__ = 'Copyright (C) 2018-2019, Nokia'
+__email__ = 'agnieszka.bylica@nokia.com, marcin.usielski@nokia.com'
import pytest
@@ -21,7 +21,7 @@ def test_su_catches_authentication_failure(buffer_connection, command_output_and
from moler.exceptions import CommandFailure
command_output, expected_result = command_output_and_expected_result_auth
buffer_connection.remote_inject_response([command_output])
- su_cmd = Su(connection=buffer_connection.moler_connection)
+ su_cmd = Su(connection=buffer_connection.moler_connection, prompt=r"xyz@debian:")
with pytest.raises(CommandFailure):
su_cmd()
