def test_priority(self):
    flags = [db.DB_PRIORITY_VERY_LOW, db.DB_PRIORITY_LOW, db.DB_PRIORITY_DEFAULT, db.DB_PRIORITY_HIGH, db.DB_PRIORITY_VERY_HIGH]
    for flag in flags:
        self.db.set_priority(flag)
        self.assertEqual(flag, self.db.get_priority())
def test_priority(self):
    flags = [db.DB_PRIORITY_VERY_LOW, db.DB_PRIORITY_LOW, db.DB_PRIORITY_DEFAULT, db.DB_PRIORITY_HIGH, db.DB_PRIORITY_VERY_HIGH]
    for flag in flags:
        self.db.set_priority(flag)
        self.assertEqual(flag, self.db.get_priority())