from db_test import DBDakTestCase, fixture
from daklib.dbconn import *
from db_test import DBDakTestCase, fixture
from daklib.dbconn import *
from os.path import normpath
from sqlalchemy.exc import FlushError, IntegrityError
from os.path import normpath
from sqlalchemy.exc import FlushError, IntegrityError
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)
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)