From: Torsten Werner Date: Sat, 12 Feb 2011 20:18:38 +0000 (+0100) Subject: Test function get_override_type(). X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e7af2430da903cb25cb826cdb6be44d0ea1f54fc;p=dak.git Test function get_override_type(). Signed-off-by: Torsten Werner --- diff --git a/tests/dbtest_contents.py b/tests/dbtest_contents.py index f36138db..98445132 100755 --- a/tests/dbtest_contents.py +++ b/tests/dbtest_contents.py @@ -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()