server/test/unittest_datafeed.py
changeset 7650 278fe9c1f3ad
parent 7631 4ac19f288149
child 7717 e564c255bf29
--- a/server/test/unittest_datafeed.py	Tue Jul 12 10:36:22 2011 +0200
+++ b/server/test/unittest_datafeed.py	Tue Jul 12 11:27:42 2011 +0200
@@ -94,6 +94,14 @@
         self.assertTrue(dfsource.latest_retrieval)
         self.assertTrue(dfsource.fresh())
 
+        # test_delete_source
+        req = self.request()
+        with self.debugged('DBG_RQL'):
+            req.execute('DELETE CWSource S WHERE S name "myfeed"')
+            self.commit()
+        self.failIf(self.execute('Card X WHERE X title "cubicweb.org"'))
+        self.failIf(self.execute('Any X WHERE X has_text "cubicweb.org"'))
+
 if __name__ == '__main__':
     from logilab.common.testlib import unittest_main
     unittest_main()