def setup_shares(self):
        """Setup some shares for moves from shares."""
        d = self.vgw.make_tree(self.root.id, '/a/b/c/d')
        y = self.vgw.make_tree(self.root.id, '/x/y')

        usera = make_storage_user(username='sharee1')
        userb = make_storage_user(username='sharee2')
        userc = make_storage_user(username='sharee3')
        # make 4 shares
        sharea = self.vgw.make_share(d.id, 'sharea', user_id=usera.id)
        shareb = self.vgw.make_share(d.id, 'shareb', user_id=userb.id)
        sharec = self.vgw.make_share(d.id, 'sharec', user_id=userc.id)
        # userc will not accept the share in this test
        usera._gateway.accept_share(sharea.id)
        userb._gateway.accept_share(shareb.id)
        return d, y, sharea, shareb, sharec