def test_flags(self):
    self.db.set_flags(db.DB_CHKSUM)
    self.assertEqual(db.DB_CHKSUM, self.db.get_flags())
    self.db.set_flags(db.DB_TXN_NOT_DURABLE)
    self.assertEqual((db.DB_TXN_NOT_DURABLE | db.DB_CHKSUM), self.db.get_flags())
def test_flags(self):
    self.db.set_flags(db.DB_CHKSUM)
    self.assertEqual(db.DB_CHKSUM, self.db.get_flags())
    self.db.set_flags(db.DB_TXN_NOT_DURABLE)
    self.assertEqual((db.DB_TXN_NOT_DURABLE | db.DB_CHKSUM), self.db.get_flags())