From c0c3d62a480a477a0beed6cc1b6ad60e2a517088 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Fri, 4 Mar 2011 09:03:45 +0100 Subject: [PATCH] Fix contents testcase. Signed-off-by: Torsten Werner --- tests/dbtest_contents.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() -- 2.39.5