Commits

Frederic De Groef committed c9586ff

[misc] using 'coding=utf-8' instead of the other crap

  • Participants
  • Parent commits 36ee531

Comments (0)

Files changed (9)

tests/datasources/csxj_test_tools.py

-# -*- coding: utf-8 -*-
+# coding=utf-8
 from nose.tools import eq_, ok_, nottest
 import itertools as it
 

tests/datasources/test_dhnet.py

-# -*- coding: utf-8 -*-
+# coding=utf-8
 """
 Link extraction test suite for dhnet.py
 """

tests/datasources/test_lalibre.py

-# -*- coding: utf-8 -*-
+# coding=utf-8
 """
 Link extraction test suite for lalibre.py
 """
             expected_links = expected_sidebox_links + expected_bottom_links + expected_embbeded_media_links
             assert_taggedURLs_equals(expected_links, extracted_links)
 
-
     def test_same_owner_tagging(self):
         """ lalibre parser correctly tags 'same owner' links """
         with open(os.path.join(DATA_ROOT, "links_same_owner_tagging.html")) as f:
             assert_taggedURLs_equals(expected_links, extracted_links)
 
 
-
 class TestLalibreContentExtraction(object):
     def test_clean_paragraph_extraction(self):
         """ lalibre parser extracts the paragraphs as a list of strings without bullshit characters (e.g. \\t, \\r, \\n)"""
 
             expected_content = [u"Mouss Diouf a été révélé au grand public grâce à son interprétation du lieutenant N'Guma dans la série française Julie Lescaut. \r\n\r\nVéronique Genest est resté très proche de Mouss Diouf après son accident vasculaire cérébral. Elle a réagi sur Twitter suite au décès de l'acteur."]
             eq_(article.content, expected_content, msg="\n{0}\n{1}".format(article.content, expected_content))
-

tests/datasources/test_lavenir.py

-# -*- coding: utf-8 -*-
+# coding=utf-8
 """
 Link extraction test suite for lavenir.py
 """
 
 DATA_ROOT = os.path.join(os.path.dirname(__file__), 'test_data', lavenir.SOURCE_NAME)
 
+
 class TestLavenirLinkExtraction(object):
 
     def test_bottom_box_and_sidebar_and_intext_links(self):
             ]
             expected_links = tagged_urls
             assert_taggedURLs_equals(expected_links, extracted_links)
-

tests/datasources/test_lesoir.py

-# -*- coding: utf-8 -*-
+# coding=utf-8
 """
 Link extraction test suite for lesoir.py
 """
 
 DATA_ROOT = os.path.join(os.path.dirname(__file__), 'test_data', 'lesoir')
 
+
 class TestLesoirLinkExtraction(object):
     def test_same_owner_tagging(self):
         """ Lesoir parser correctly tags 'same owner' links """
                 make_tagged_url("http://www.citysonic.be/2012/speaker-lineup/sonic-kids-huy/", u"""Sonic Kids Huy""", set(['external', 'in text'])),
             ]
             expected_links = tagged_urls
-            assert_taggedURLs_equals(expected_links, extracted_links)
+            assert_taggedURLs_equals(expected_links, extracted_links)

tests/datasources/test_lesoir_new.py

-# -*- coding: utf-8 -*-
+# coding=utf-8
 """
 Link extraction test suite for lesoir_new.py
 """

tests/datasources/test_septsursept.py

-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+# coding=utf-8
 
 
 from nose.tools import eq_
         observed_news, observed_junk = separate_articles_and_photoalbums(frontpage_items)
 
         eq_(expected_news, observed_news)
-        eq_(expected_junk, observed_junk)
+        eq_(expected_junk, observed_junk)

tests/datasources/test_sudinfo.py

-# -*- coding: utf-8 -*-
+# coding=utf-8
 """
 Test suites for sudinfo.py
 """

tests/datasources/test_sudpresse.py

-# -*- coding: utf-8 -*-
+# coding=utf-8
 """
 Link extraction test suite for sudpresse.py
 """
 
 DATA_ROOT = os.path.join(os.path.dirname(__file__), 'test_data', 'sudpresse')
 
+
 class TestSudpresseLinkExtraction(object):
     def test_sidebar_box_tagging(self):
         """ Sudpresse parser correctly tags 'sidebar box' links """
                 make_tagged_url("http://www.nordeclair.fr/Actualite/Depeches/2012/02/13/dujardin-a-lille.shtml", u"""Voir sur le site nordeclair.fr""", set(['external', 'same owner', 'sidebar box'])),
             ]
             expected_links = tagged_urls
-            assert_taggedURLs_equals(expected_links, extracted_links)
+            assert_taggedURLs_equals(expected_links, extracted_links)