#NEWLINE# def test_list_result_ignores_other_pools( self ) : #NEWLINE# #INDENT# '\n        ``ZFSSnapshots.list`` skips snapshots of other pools.\n\n        In particular, we are likely to see snapshot names of sub-pools in\n        the output.\n        ' #NEWLINE# reactor = FakeProcessReactor ( ) #NEWLINE# snapshots = ZFSSnapshots ( reactor , Filesystem ( b'mypool' , None ) ) #NEWLINE# d = snapshots . list ( ) #NEWLINE# process_protocol = reactor . processes [ 0 ] . processProtocol #NEWLINE# process_protocol . childDataReceived ( 1 , b'mypool/child@name\n' ) #NEWLINE# process_protocol . childDataReceived ( 1 , b'mypool@name2\n' ) #NEWLINE# reactor . processes [ 0 ] . processProtocol . processEnded ( Failure ( ProcessDone ( 0 ) ) ) #NEWLINE# self . assertEqual ( self . successResultOf ( d ) , [ b'name2' ] )