aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2014-02-13 02:12:20 +0100
committerMatěj Cepl <mcepl@redhat.com>2014-02-13 02:12:20 +0100
commita787996df1c6332e87e316885a27d6433e3767df (patch)
treefbda9dea8aa7f33bbfa79411ad1eab36327c470b
parent23a64455b1d30b5ed71ac58cb786aeeb54f168c2 (diff)
downloadgg_scraper-a787996df1c6332e87e316885a27d6433e3767df.tar.gz
Failing test for not recognizing a welcome message.
See https://github.com/izidormatusov/gg_scraper/commit/75559fc4d3b5d84c75d0b100361f523452c7e78d
-rw-r--r--test/test_functional.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_functional.py b/test/test_functional.py
index 44a5c8f..02ccc6d 100644
--- a/test/test_functional.py
+++ b/test/test_functional.py
@@ -14,6 +14,7 @@ ORIG_URL = 'http://groups.google.com/d/forum/jbrout'
EXP_URL = 'https://groups.google.com/forum/' + \
'?_escaped_fragment_=forum/jbrout'
TOPIC_URL = 'https://groups.google.com/forum/#!topic/jbrout/xNwoVmC07KI'
+OSCAR_URL = 'https://groups.google.com/forum/#!forum/django-oscar'
ARTICLE_URL = 'https://groups.google.com/d/msg/jbrout' + \
'/xNwoVmC07KI/OfpRHFscUkwJ'
@@ -35,6 +36,11 @@ class TestGGScrapperFunctional(unittest.TestCase):
topics = page.get_topics()
self.assertGreater(len(topics), 0)
+ def test_collecting_oscar_topics(self):
+ page = gg_scraper.Group(OSCAR_URL)
+ topics = page.get_topics()
+ self.assertGreater(len(topics), 0)
+
def test_collecting_articles(self):
logging.debug('topic = URL {0}'.format(TOPIC_URL))
topic = gg_scraper.Topic(TOPIC_URL,