diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2014-12-12 22:32:47 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2014-12-12 22:43:36 +0100 |
commit | 2416450498a418bd6daf9f8bac255a47064079e6 (patch) | |
tree | 7fc51a851a60c8613e5625c7df1dfcfdc49228e4 /test | |
parent | 9f4254aad67783926ae8dc74a0b0ad2d528dd0f1 (diff) | |
download | gg_scraper-2416450498a418bd6daf9f8bac255a47064079e6.tar.gz |
Make python 2.7 default again and clean up.0.9.0
Switch setup.py to use setuptools.
Fixes #1, fixes #2
Diffstat (limited to 'test')
-rw-r--r-- | test/test_functional.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_functional.py b/test/test_functional.py index 02ccc6d..34b49c6 100644 --- a/test/test_functional.py +++ b/test/test_functional.py @@ -10,6 +10,7 @@ except ImportError: import gg_scraper IN_URL = 'https://groups.google.com/forum/#!forum/jbrout' +BAD_URL = "http://groups.google.com/group/rdflib-dev" ORIG_URL = 'http://groups.google.com/d/forum/jbrout' EXP_URL = 'https://groups.google.com/forum/' + \ '?_escaped_fragment_=forum/jbrout' @@ -50,6 +51,10 @@ class TestGGScrapperFunctional(unittest.TestCase): article_count = topic.get_count_articles() self.assertEqual(len(articles), article_count) + def test_wrong_URL(self): + with self.assertRaises(gg_scraper.BadURLError): + gg_scraper.Group(BAD_URL) + def test_get_raw_article(self): self.maxDiff = None article = gg_scraper.Article(ARTICLE_URL) |