]> err.no Git - dak/commitdiff
Extend the testcase for check_poolfile().
authorTorsten Werner <twerner@debian.org>
Fri, 28 Jan 2011 21:17:08 +0000 (22:17 +0100)
committerTorsten Werner <twerner@debian.org>
Fri, 28 Jan 2011 21:17:08 +0000 (22:17 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
tests/dbtest_packages.py

index a7c861be9d2937b142d69dfbc12ca77b0a4791da..54aa8476c16ecf14d2dc193a2be8fda23743a339 100755 (executable)
@@ -279,6 +279,10 @@ class PackageTestCase(DBDakTestCase):
         self.assertEqual((True, self.file['sl_3.03-16.dsc']), \
             check_poolfile('main/s/sl/sl_3.03-16.dsc', 0, '', \
                 contrib.location_id, self.session))
+        # test string value of 2nd argument
+        self.assertEqual((True, self.file['sl_3.03-16.dsc']), \
+            check_poolfile('main/s/sl/sl_3.03-16.dsc', '0', '', \
+                contrib.location_id, self.session))
         self.assertEqual((False, None), \
             check_poolfile('foobar', 0, '', contrib.location_id, self.session))
         self.assertEqual((False, self.file['sl_3.03-16.dsc']), \