--- a/sobjects/test/unittest_parsers.py Tue Jul 26 16:49:10 2011 +0200
+++ b/sobjects/test/unittest_parsers.py Tue Jul 26 16:50:02 2011 +0200
@@ -261,7 +261,7 @@
self.assertEqual(user.cwuri, 'http://pouet.org/5')
self.assertEqual(user.cw_source[0].name, 'myfeed')
- def test_missing_fti_attribute(self):
+ def test_noerror_missing_fti_attribute(self):
dfsource = self.repo.sources_by_uri['myfeed']
session = self.repo.internal_session()
parser = dfsource._get_parser(session)
@@ -273,6 +273,21 @@
</rset>
'''], raise_on_error=True)
+ def test_noerror_unspecified_date(self):
+ dfsource = self.repo.sources_by_uri['myfeed']
+ session = self.repo.internal_session()
+ parser = dfsource._get_parser(session)
+ dfsource.process_urls(parser, ['''
+<rset size="1">
+ <Card eid="50" cwuri="http://pouet.org/50" cwsource="system">
+ <title>how-to</title>
+ <content>how-to</content>
+ <synopsis>how-to</synopsis>
+ <creation_date/>
+ </Card>
+</rset>
+'''], raise_on_error=True)
+
if __name__ == '__main__':
from logilab.common.testlib import unittest_main
unittest_main()