]> git.decadent.org.uk Git - dak.git/blobdiff - tests/dbtest_packages.py
Fix and improve class Component.
[dak.git] / tests / dbtest_packages.py
index f25884cebd95ddaed938cccdee0a46185c0f9bbd..8c004cd61fba12f0fa893b618e9e00a36732a738 100755 (executable)
@@ -370,8 +370,9 @@ class PackageTestCase(DBDakTestCase):
     def test_components(self):
         'test class Component'
 
-        self.assertEqual(self.loc['main'], self.comp['main'].location)
-        self.assertEqual(self.loc['contrib'], self.comp['contrib'].location)
+        self.assertEqual([self.loc['main']], self.comp['main'].location)
+        self.assertEqual([self.loc['contrib']], self.comp['contrib'].location)
+        self.assertEqual(0, self.comp['main'].overrides.count())
 
     def test_get_component_by_package_suite(self):
         'test get_component_by_package_suite()'