def test_restore_node(self):
        """Test restore_node."""
        self.vgw.make_subdirectory(self.root.id, 'the dir name')
        a_file = self.vgw.make_file(self.root.id, 'file.txt')
        self.vgw.delete_node(a_file.id)
        self.assertRaises(errors.DoesNotExist, self.vgw.get_node, a_file.id)
        self.vgw.restore_node(a_file.id)
        node = self.vgw.get_node(a_file.id)
        self.assertEqual(node.id, a_file.id)