OSDN Git Service

add sfjpmagazine fetcher.
[otptools/otptools.git] / test_fetch.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 """Test suite for spyder.py."""
4
5 import unittest
6 import os.path
7 import codecs
8
9 import fetch_sfjpmag
10
11
12
13 class TestSequenceFunctions(unittest.TestCase):
14     def setUp(self):
15         self.test_url = "http://sourceforge.jp/magazine/09/09/10/1214252"
16         self.test_dir = "fetch_test"
17
18     def test_fetch(self):
19         """test for fetch"""
20         fetch_sfjpmag.fetch(self.test_url, self.test_dir)
21
22
23
24 # do unittest
25 suite = unittest.TestLoader().loadTestsFromTestCase(TestSequenceFunctions)
26 unittest.TextTestRunner(verbosity=2).run(suite)
27