From e7af2430da903cb25cb826cdb6be44d0ea1f54fc Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Sat, 12 Feb 2011 21:18:38 +0100 Subject: [PATCH] Test function get_override_type(). Signed-off-by: Torsten Werner --- tests/dbtest_contents.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.39.5