PuSH: add test for config value
This commit is contained in:
parent
d9cef10930
commit
6897d0516e
@ -5,6 +5,7 @@ template_files = index.html.tmpl atom.xml.tmpl
|
|||||||
items_per_page = 50
|
items_per_page = 50
|
||||||
filters = foo
|
filters = foo
|
||||||
feed_timeout=30
|
feed_timeout=30
|
||||||
|
pubsubhubbub_hub = http://pubsubhubbub.appspot.com
|
||||||
|
|
||||||
[index.html.tmpl]
|
[index.html.tmpl]
|
||||||
days_per_page = 7
|
days_per_page = 7
|
||||||
|
@ -30,6 +30,9 @@ class ConfigTest(unittest.TestCase):
|
|||||||
def test_link(self):
|
def test_link(self):
|
||||||
self.assertEqual('http://example.com/', config.link())
|
self.assertEqual('http://example.com/', config.link())
|
||||||
|
|
||||||
|
def test_pubsubhubbub_hub(self):
|
||||||
|
self.assertEqual('http://pubsubhubbub.appspot.com', config.pubsubhubbub_hub())
|
||||||
|
|
||||||
# per template configuration
|
# per template configuration
|
||||||
|
|
||||||
def test_days_per_page(self):
|
def test_days_per_page(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user