server/test/unittest_datafeed.py
branchstable
changeset 7717 e564c255bf29
parent 7650 278fe9c1f3ad
child 7735 71adfd6bab38
equal deleted inserted replaced
7716:c893150b2394 7717:e564c255bf29
    94         self.assertTrue(dfsource.latest_retrieval)
    94         self.assertTrue(dfsource.latest_retrieval)
    95         self.assertTrue(dfsource.fresh())
    95         self.assertTrue(dfsource.fresh())
    96 
    96 
    97         # test_delete_source
    97         # test_delete_source
    98         req = self.request()
    98         req = self.request()
    99         with self.debugged('DBG_RQL'):
    99         req.execute('DELETE CWSource S WHERE S name "myfeed"')
   100             req.execute('DELETE CWSource S WHERE S name "myfeed"')
   100         self.commit()
   101             self.commit()
       
   102         self.failIf(self.execute('Card X WHERE X title "cubicweb.org"'))
   101         self.failIf(self.execute('Card X WHERE X title "cubicweb.org"'))
   103         self.failIf(self.execute('Any X WHERE X has_text "cubicweb.org"'))
   102         self.failIf(self.execute('Any X WHERE X has_text "cubicweb.org"'))
   104 
   103 
   105 if __name__ == '__main__':
   104 if __name__ == '__main__':
   106     from logilab.common.testlib import unittest_main
   105     from logilab.common.testlib import unittest_main