From: Torsten Werner <twerner@debian.org>
Date: Fri, 28 Jan 2011 21:17:08 +0000 (+0100)
Subject: Extend the testcase for check_poolfile().
X-Git-Tag: debian-r/squeeze~386
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d9a7c8dc8a02a6bef051ab0ec63d77d7a0c9304b;p=dak.git

Extend the testcase for check_poolfile().

Signed-off-by: Torsten Werner <twerner@debian.org>
---

diff --git a/tests/dbtest_packages.py b/tests/dbtest_packages.py
index a7c861be..54aa8476 100755
--- a/tests/dbtest_packages.py
+++ b/tests/dbtest_packages.py
@@ -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']), \