1 # -*- coding: utf-8 -*-
3 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
7 from nose.tools import *
8 from librarian.latex import LatexFragment
11 def test_latex_to_png():
12 lf = LatexFragment("$ \sum_{i = 0}^{123} n_i^{3}$")
14 assert_equal(name1.find("/"), -1)
16 assert_true(os.path.exists(name))
18 assert_true(os.stat(name).st_size > 0)