]> err.no Git - dak/commitdiff
Add a test for the new cascade rule.
authorTorsten Werner <twerner@debian.org>
Wed, 2 Mar 2011 19:00:07 +0000 (20:00 +0100)
committerTorsten Werner <twerner@debian.org>
Wed, 2 Mar 2011 19:00:07 +0000 (20:00 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
tests/dbtest_contents.py

index 7402601925178ddbfd1d3fa90796733461a7cabb..49db68489e0e084f6dba79e8acbdf379140381cd 100755 (executable)
@@ -154,6 +154,9 @@ class ContentsTestCase(DBDakTestCase):
             self.otype['udeb'], self.comp['main'])
         self.assertEqual('tests/fixtures/ftp/squeeze/main/Contents-i386.gz', \
             cw.output_filename())
+        # test delete cascading
+        self.session.delete(self.binary['hello_2.2-1_i386'])
+        self.session.commit()
 
     def test_scan_contents(self):
         self.setup_binaries()