Merge branch 'pr/555'

Conflicts:
	pelican/contents.py
This commit is contained in:
Bruno Binet 2012-11-13 01:23:31 +01:00
commit c787e02dcc
4 changed files with 10 additions and 10 deletions

View file

@ -40,8 +40,11 @@ class TestPage(unittest.TestCase):
def test_mandatory_properties(self):
"""If the title is not set, must throw an exception."""
self.assertRaises(AttributeError, Page, 'content')
page = Page(**self.page_kwargs)
page = Page('content')
with self.assertRaises(NameError) as cm:
page.check_properties()
page = Page('content', metadata={'title': 'foobar'})
page.check_properties()
def test_summary_from_metadata(self):