]> err.no Git - dak/commitdiff
Test function get_override_type().
authorTorsten Werner <twerner@debian.org>
Sat, 12 Feb 2011 20:18:38 +0000 (21:18 +0100)
committerTorsten Werner <twerner@debian.org>
Sat, 12 Feb 2011 20:18:38 +0000 (21:18 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
tests/dbtest_contents.py

index f36138dbf57852dd9cb384f63036e5ac9719c63c..9844513227357534d4f44f321848790496ab2cee 100755 (executable)
@@ -2,7 +2,7 @@
 
 from db_test import DBDakTestCase
 
-from daklib.dbconn import DBConn, BinContents, OverrideType
+from daklib.dbconn import DBConn, BinContents, OverrideType, get_override_type
 
 from sqlalchemy.exc import FlushError, IntegrityError
 import unittest
@@ -66,6 +66,7 @@ class ContentsTestCase(DBDakTestCase):
         self.session.flush()
         self.assertEqual('deb', debtype.overridetype)
         self.assertEqual(0, debtype.overrides.count())
+        self.assertEqual(debtype, get_override_type('deb', self.session))
 
 if __name__ == '__main__':
     unittest.main()