sobjects/test/unittest_parsers.py
branchstable
changeset 7698 1c7411535c2d
parent 7689 a86fd3ec322e
child 7699 d07cde311630
--- a/sobjects/test/unittest_parsers.py	Tue Jul 26 16:34:42 2011 +0200
+++ b/sobjects/test/unittest_parsers.py	Tue Jul 26 16:35:10 2011 +0200
@@ -256,6 +256,18 @@
         self.assertEqual(user.cwuri, 'http://pouet.org/5')
         self.assertEqual(user.cw_source[0].name, 'myfeed')
 
+    def test_missing_fti_attribute(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>
+ </Card>
+</rset>
+'''], raise_on_error=True)
+
 if __name__ == '__main__':
     from logilab.common.testlib import unittest_main
     unittest_main()