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: v14.0.1~775^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1039633b77ab9b984d5247624465ceb6d7c285a2;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 d38927ae2c6..2a69d3e61b9 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'])