def test_list_result_ignores_other_pools(self):
        reactor = FakeProcessReactor()
        snapshots = ZFSSnapshots(reactor, Filesystem(b"mypool", None))

        d = snapshots.list()
        process_protocol = reactor.processes[0].processProtocol
        process_protocol.childDataReceived(1, b"mypool/child@name\n")
        process_protocol.childDataReceived(1, b"mypool@name2\n")
        reactor.processes[0].processProtocol.processEnded(
            Failure(ProcessDone(0)))
        self.assertEqual(self.successResultOf(d), [b"name2"])
Create and register a new role to create links for an API documentation.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/volume/test/test_filesystems_zfs.py/ZFSSnapshotsTests.test_list_result_ignores_other_pools--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/epydoc/docwriter/xlink.py/create_api_role