self.setup_components()
self.loc = {}
self.loc['main'] = Location( \
- path = '/srv/ftp-master.debian.org/ftp/pool/', \
- component = self.comp['main'])
+ path = fixture('ftp/pool/'), component = self.comp['main'])
self.loc['contrib'] = Location( \
- path = '/srv/ftp-master.debian.org/ftp/pool/', \
- component = self.comp['contrib'])
+ path = fixture('ftp/pool/'), component = self.comp['contrib'])
self.session.add_all(self.loc.values())
def setup_poolfiles(self):
#!/usr/bin/env python
from db_test import DBDakTestCase
+from base_test import fixture
from daklib.dbconn import *
from daklib.queue_install import package_to_suite
main = self.loc['main']
contrib = self.loc['contrib']
- self.assertEqual('/srv/ftp-master.debian.org/ftp/pool/', main.path)
+ self.assertEqual(fixture('ftp/pool/'), main.path)
count = len(self.file.keys()) - 2
self.assertEqual(count, main.files.count())
self.assertEqual(2, contrib.files.count())
self.assertEqual(count - 1, main.files.count())
self.assertEqual(3, contrib.files.count())
# test fullpath
- self.assertEqual('/srv/ftp-master.debian.org/ftp/pool/main/s/sl/sl_3.03-16.dsc', \
+ self.assertEqual(fixture('ftp/pool/main/s/sl/sl_3.03-16.dsc'), \
self.file['sl_3.03-16.dsc'].fullpath)
# test check_poolfile()
self.assertEqual((True, self.file['sl_3.03-16.dsc']), \