[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 5/5] Add a test for the new cascade rule.



Signed-off-by: Torsten Werner <twerner@debian.org>
---
 tests/dbtest_contents.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tests/dbtest_contents.py b/tests/dbtest_contents.py
index 7402601..49db684 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()
-- 
1.7.2.3


Reply to: