1 # -*- coding: utf-8 -*-
3 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
6 """Tests for the publishing process."""
8 from catalogue.test_utils import get_fixture
10 from mock import patch
11 from django.test import TestCase
12 from django.contrib.auth.models import User
13 from catalogue.models import Book
14 from catalogue.management import edumed
17 south_logger=logging.getLogger('south')
18 south_logger.setLevel(logging.INFO)
21 class EduMedTests(TestCase):
23 self.text1 = get_fixture('gim_3.1.txt')
25 def test_autotag(self):
26 lines = edumed.tagger(self.text1)