'``ZFSSnapshots.list`` skips snapshots of other pools.
In particular, we are likely to see snapshot names of sub-pools in
the output.'

def test_list_result_ignores_other_pools(self):

    reactor = FakeProcessReactor()
    snapshots = ZFSSnapshots(reactor, Filesystem('mypool', None))
    d = snapshots.list()
    process_protocol = reactor.processes[0].processProtocol
    process_protocol.childDataReceived(1, 'mypool/child@name\n')
    process_protocol.childDataReceived(1, 'mypool@name2\n')
    reactor.processes[0].processProtocol.processEnded(Failure(ProcessDone(0)))
    self.assertEqual(self.successResultOf(d), ['name2'])
