From: Torsten Werner Date: Fri, 4 Mar 2011 08:03:45 +0000 (+0100) Subject: Fix contents testcase. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c0c3d62a480a477a0beed6cc1b6ad60e2a517088;p=dak.git Fix contents testcase. Signed-off-by: Torsten Werner --- diff --git a/tests/dbtest_contents.py b/tests/dbtest_contents.py index b6512042..56e29eb2 100755 --- a/tests/dbtest_contents.py +++ b/tests/dbtest_contents.py @@ -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()