X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=tests%2Fdbtest_contents.py;fp=tests%2Fdbtest_contents.py;h=957307ba4d1bbd9e6b5408426aabbd5bb45716b7;hb=de7a18ef913661dff550e07487f65c01c99381a3;hp=90fe49666484a6e35ee19ac688fe0a440f7dfc4b;hpb=76467b7e0ddd35e882cf8ac0ddf3b56c3739315b;p=dak.git diff --git a/tests/dbtest_contents.py b/tests/dbtest_contents.py index 90fe4966..957307ba 100755 --- a/tests/dbtest_contents.py +++ b/tests/dbtest_contents.py @@ -3,7 +3,7 @@ from db_test import DBDakTestCase, fixture from daklib.dbconn import * -from daklib.contents import ContentsWriter, ContentsScanner, UnpackedSource +from daklib.contents import ContentsWriter, BinaryContentsScanner, UnpackedSource from os.path import normpath from sqlalchemy.exc import FlushError, IntegrityError @@ -167,7 +167,7 @@ class ContentsTestCase(DBDakTestCase): self.assertEqual(['usr/bin/hello', 'usr/share/doc/hello/copyright'], filelist) self.session.commit() - ContentsScanner(self.binary['hello_2.2-1_i386'].binary_id).scan() + BinaryContentsScanner(self.binary['hello_2.2-1_i386'].binary_id).scan() bin_contents_list = self.binary['hello_2.2-1_i386'].contents.order_by('file').all() self.assertEqual(2, len(bin_contents_list)) self.assertEqual('usr/bin/hello', bin_contents_list[0].file)