def testChoose(self): """testing choose()""" r = dbexts.choose(1, 4, 5) assert r == 4, "choose failed, expected 4, got %d" % r