]> git.decadent.org.uk Git - dak.git/commitdiff
Fix contents testcase.
authorTorsten Werner <twerner@debian.org>
Fri, 4 Mar 2011 08:03:45 +0000 (09:03 +0100)
committerTorsten Werner <twerner@debian.org>
Fri, 4 Mar 2011 08:03:45 +0000 (09:03 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
tests/dbtest_contents.py

index b651204216345d681f7c0548eb15c37001d73250..56e29eb219448444c368d9eac15be8d6e9e28ae0 100755 (executable)
@@ -154,11 +154,12 @@ 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'])
         # test unicode support
         self.binary['hello_2.2-1_i386'].contents.append(BinContents(file = '\xc3\xb6'))
         self.session.commit()
+        # test delete cascading
+        self.session.delete(self.binary['hello_2.2-1_i386'])
+        self.session.commit()
 
     def test_scan_contents(self):
         self.setup_binaries()