# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1241452073 -7200 # Mon May 04 17:47:53 2009 +0200 # Node ID 9d683132468a340f87945ecbd6311e5367b911a7 # Parent 0ce4c3918891eba984825f8d2f0ab890343c0db9 cleanup diff --git a/test/test_blog.py b/test/test_blog.py --- a/test/test_blog.py +++ b/test/test_blog.py @@ -2,10 +2,10 @@ from cubicweb.devtools.testlib import AutomaticWebTest class AutomaticWebTest(AutomaticWebTest): - + def to_test_etypes(self): return set(('Blog', 'BlogEntry',)) - + def list_startup_views(self): return ('blog_archive',) diff --git a/test/unittest_blog.py b/test/unittest_blog.py --- a/test/unittest_blog.py +++ b/test/unittest_blog.py @@ -12,7 +12,7 @@ class BlogTests(ControllerTC): """test blog specific behaviours""" - + def test_notifications(self): cubicweb_blog = self.add_entity('Blog', title=u'cubicweb', description=u"cubicweb c'est beau") blog_entry_1 = self.add_entity('BlogEntry', title=u"hop", content=u"cubicweb hop") @@ -29,7 +29,7 @@ sent = [re.sub('#\d+', '#EID', decode_header(msg['subject'].encode())[0][0]) for msg, recipients in op.to_send] self.assertListEquals(sent, ['[data] hop', '[data] yes']) - - + + if __name__ == '__main__': unittest_main()