aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_functional.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2014-01-05 09:25:14 +0100
committerMatěj Cepl <mcepl@redhat.com>2014-01-11 10:50:25 +0100
commitc5c5b68dd2ed591e0ad411bf3dde4611cb39f18c (patch)
tree533014d5bc07f3a5432800d059dd8c33fe446b2e /test/test_functional.py
parent2b7981e4f8ad425d73936751789c7609f5541a1b (diff)
downloadgg_scraper-c5c5b68dd2ed591e0ad411bf3dde4611cb39f18c.tar.gz
scrapper -> scraper0.5
Woops! scrapper: a fighter or aggressive competitor, especially one always ready or eager for a fight, argument, or contest: the best lightweight scrapper in boxing; a rugged political scrapper. That's not what I meant.
Diffstat (limited to 'test/test_functional.py')
-rw-r--r--test/test_functional.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_functional.py b/test/test_functional.py
index ec76998..c8f5bf2 100644
--- a/test/test_functional.py
+++ b/test/test_functional.py
@@ -4,7 +4,7 @@ import logging
import io
import os.path
import unittest
-import gg_scrapper
+import gg_scraper
IN_URL = 'https://groups.google.com/forum/#!forum/jbrout'
ORIG_URL = 'http://groups.google.com/d/forum/jbrout'
@@ -17,16 +17,16 @@ ARTICLE_URL = 'https://groups.google.com/d/msg/jbrout' + \
class TestGGScrapperFunctional(unittest.TestCase):
def test_collecting_topics(self):
- page = gg_scrapper.Group(IN_URL)
+ page = gg_scraper.Group(IN_URL)
topics = page.get_topics()
logging.debug("number of topics = %d", len(topics))
self.assertGreater(len(topics), 0)
def test_collecting_articles(self):
logging.debug('topic = URL {}'.format(TOPIC_URL))
- topic = gg_scrapper.Topic(TOPIC_URL,
- 'repo version incompatible with ' +
- 'ubuntu 11.04 ?')
+ topic = gg_scraper.Topic(TOPIC_URL,
+ 'repo version incompatible with ' +
+ 'ubuntu 11.04 ?')
articles = topic.get_articles()
article_count = topic.get_count_articles()
logging.debug('article_count = {0:d}'.format(article_count))
@@ -35,7 +35,7 @@ class TestGGScrapperFunctional(unittest.TestCase):
def test_get_raw_article(self):
self.maxDiff = None
- article = gg_scrapper.Article(ARTICLE_URL)
+ article = gg_scraper.Article(ARTICLE_URL)
rfc_msg = article.collect_message().replace('\r\n', '\n')
rfc_msg = '\n'.join(rfc_msg.split('\n')[1:])