]> git.decadent.org.uk Git - dak.git/commitdiff
Extend test_get_component_by_package_suite() even more.
authorTorsten Werner <twerner@debian.org>
Thu, 27 Jan 2011 06:22:13 +0000 (07:22 +0100)
committerTorsten Werner <twerner@debian.org>
Thu, 27 Jan 2011 06:22:13 +0000 (07:22 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
tests/dbtest_packages.py

index 44ec0efe028ffa56f2556f889a1d793f4c90a603..f4749aca0c8f7a4396ff985568961d4ca97323f8 100755 (executable)
@@ -551,6 +551,8 @@ class PackageTestCase(DBDakTestCase):
         result = get_component_by_package_suite('foobar', ['sid'], self.session)
         self.assertEqual(None, result)
         # test that the newest version is returend
+        result = get_component_by_package_suite('gnome-hello', ['squeeze'], self.session)
+        self.assertEqual('main', result)
         result = get_component_by_package_suite('gnome-hello', ['sid'], self.session)
         self.assertEqual('contrib', result)