From 07b19818770def40f9e8df953cf00f859bbd6299 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Wed, 2 Mar 2011 20:00:07 +0100 Subject: [PATCH] Add a test for the new cascade rule. Signed-off-by: Torsten Werner --- tests/dbtest_contents.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/dbtest_contents.py b/tests/dbtest_contents.py index 74026019..49db6848 100755 --- a/tests/dbtest_contents.py +++ b/tests/dbtest_contents.py @@ -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() -- 2.39.5