def test_readonly_share_fail(self):
        """Test make sure updates can't happen on a read only share"""
        share_dao = SharedDirectory(self.r_share, by_user=self.sharer)
        vgw = ReadWriteVolumeGateway(self.user, share=share_dao)
        root_id = vgw.get_root().id
        self.assertRaises(errors.NoPermission,
                          vgw.make_file, root_id, 'name')
        self.assertRaises(errors.NoPermission,
                          vgw.make_subdirectory, root_id, 'name')
        a_file = self.r_node.make_file('filename')
        dira = self.r_node.make_subdirectory('dirname')
        self.assertRaises(errors.NoPermission,
                          vgw.delete_node, dira.id)
        self.assertRaises(errors.NoPermission,
                          vgw.restore_node, dira.id)
        self.assertRaises(errors.NoPermission,
                          vgw.move_node, a_file.id, root_id, 'new name')