cubicweb/sobjects/test/unittest_cwxmlparser.py
changeset 11251 b66a8c3eebeb
parent 11057 0b59724cb3f2
equal deleted inserted replaced
11250:597f02c5cf5a 11251:b66a8c3eebeb
   308 
   308 
   309     def test_noerror_missing_fti_attribute(self):
   309     def test_noerror_missing_fti_attribute(self):
   310         dfsource = self.repo.sources_by_uri['myfeed']
   310         dfsource = self.repo.sources_by_uri['myfeed']
   311         with self.repo.internal_cnx() as cnx:
   311         with self.repo.internal_cnx() as cnx:
   312             parser = dfsource._get_parser(cnx)
   312             parser = dfsource._get_parser(cnx)
   313             dfsource.process_urls(parser, ['''
   313             parser.process_urls(['''
   314 <rset size="1">
   314 <rset size="1">
   315  <Card eid="50" cwuri="http://pouet.org/50" cwsource="system">
   315  <Card eid="50" cwuri="http://pouet.org/50" cwsource="system">
   316   <title>how-to</title>
   316   <title>how-to</title>
   317  </Card>
   317  </Card>
   318 </rset>
   318 </rset>
   320 
   320 
   321     def test_noerror_unspecified_date(self):
   321     def test_noerror_unspecified_date(self):
   322         dfsource = self.repo.sources_by_uri['myfeed']
   322         dfsource = self.repo.sources_by_uri['myfeed']
   323         with self.repo.internal_cnx() as cnx:
   323         with self.repo.internal_cnx() as cnx:
   324             parser = dfsource._get_parser(cnx)
   324             parser = dfsource._get_parser(cnx)
   325             dfsource.process_urls(parser, ['''
   325             parser.process_urls(['''
   326 <rset size="1">
   326 <rset size="1">
   327  <Card eid="50" cwuri="http://pouet.org/50" cwsource="system">
   327  <Card eid="50" cwuri="http://pouet.org/50" cwsource="system">
   328   <title>how-to</title>
   328   <title>how-to</title>
   329   <content>how-to</content>
   329   <content>how-to</content>
   330   <synopsis>how-to</synopsis>
   330   <synopsis>how-to</synopsis>