PuSH: add test for config value

This commit is contained in:
Matt Domsch 2010-06-15 12:44:33 -05:00 committed by Sam Ruby
parent d9cef10930
commit 6897d0516e
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ template_files = index.html.tmpl atom.xml.tmpl
items_per_page = 50
filters = foo
feed_timeout=30
pubsubhubbub_hub = http://pubsubhubbub.appspot.com
[index.html.tmpl]
days_per_page = 7

View File

@ -30,6 +30,9 @@ class ConfigTest(unittest.TestCase):
def test_link(self):
self.assertEqual('http://example.com/', config.link())
def test_pubsubhubbub_hub(self):
self.assertEqual('http://pubsubhubbub.appspot.com', config.pubsubhubbub_hub())
# per template configuration
def test_days_per_page(self):