#NEWLINE# def test_normal_exit( self ) : #NEWLINE# #INDENT# 'If the subprocess exits with exit code 0, the bytes output by its\n        stdout are returned as the result of the ``Deferred`` returned from\n        ``zfs_command``.\n        ' #NEWLINE# reactor = FakeProcessReactor ( ) #NEWLINE# result = zfs_command ( reactor , [ b'-H' , b'lalala' ] ) #NEWLINE# process_protocol = reactor . processes [ 0 ] . processProtocol #NEWLINE# process_protocol . childDataReceived ( 1 , b'abc' ) #NEWLINE# process_protocol . childDataReceived ( 1 , b'def' ) #NEWLINE# process_protocol . processEnded ( Failure ( ProcessDone ( 0 ) ) ) #NEWLINE# self . assertEqual ( self . successResultOf ( process_protocol ) , b'abcdef' )