From: Alfredo Deza Date: Fri, 20 Jul 2018 13:49:59 +0000 (-0400) Subject: ceph-volume tests.process ensure that stdin works on py3 and py2.7 X-Git-Tag: v12.2.8~106^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aefd218812abba610d41249f2432953fc1c56f99;p=ceph.git ceph-volume tests.process ensure that stdin works on py3 and py2.7 Signed-off-by: Alfredo Deza --- diff --git a/src/ceph-volume/ceph_volume/tests/test_process.py b/src/ceph-volume/ceph_volume/tests/test_process.py index d38927ae2c67..2a69d3e61b91 100644 --- a/src/ceph-volume/ceph_volume/tests/test_process.py +++ b/src/ceph-volume/ceph_volume/tests/test_process.py @@ -66,3 +66,12 @@ class TestCall(object): assert 'ls' in log_lines assert 'stderr' in log_lines assert out == '' + + +class TestFunctionalCall(object): + + def test_stdin(self): + process.call(['xargs', 'ls'], stdin="echo '/'") + + def test_unicode_encoding(self): + process.call(['echo', u'\xd0'])