From 25bd9aa8a55462384f699d19c73c53f244dc84ae Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Wed, 19 Jan 2011 20:31:23 +0100 Subject: [PATCH] Test PoolFile.fullpath. Signed-off-by: Torsten Werner --- tests/dbtest_packages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/dbtest_packages.py b/tests/dbtest_packages.py index 439c9a2e..05ba4116 100755 --- a/tests/dbtest_packages.py +++ b/tests/dbtest_packages.py @@ -140,6 +140,9 @@ class PackageTestCase(DBDakTestCase): location.files.append(self.file['sl']) self.session.refresh(location) self.assertEqual(2, location.files.count()) + # test fullpath + self.assertEqual('/srv/ftp-master.debian.org/ftp/pool/main/s/sl/sl_3.03-16.dsc', \ + self.file['sl'].fullpath) def setup_maintainers(self): 'create some Maintainer objects' -- 2.39.2