]> git.decadent.org.uk Git - dak.git/commitdiff
Test PoolFile.fullpath.
authorTorsten Werner <twerner@debian.org>
Wed, 19 Jan 2011 19:31:23 +0000 (20:31 +0100)
committerTorsten Werner <twerner@debian.org>
Wed, 19 Jan 2011 19:31:23 +0000 (20:31 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
tests/dbtest_packages.py

index 439c9a2e0f49382debb375cb41a6d96d811f3677..05ba4116f87c77712db007d2e2bc3cb7657df5c6 100755 (executable)
@@ -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'