update driver tests script to use default db and add count1 test

This commit is contained in:
Mike Dirolf 2009-01-30 14:17:09 -05:00
parent 349c8fcc2a
commit ee3cefc8e8

View File

@ -51,8 +51,15 @@ def capped(db):
collection2.insert({"dashes": str})
str += "-"
def count1(db):
print db.test1.find().count()
print db.test2.find().count()
print db.test3.find({"i": "a"}).count()
print db.test3.find({"i": 3}).count()
print db.test3.find({"i": {"$gte": 67}}).count()
def main(test, out_file):
db = Connection()[test]
db = Connection().driver_test_framework
test_function = globals()[test]
try:
begin = datetime.datetime.now()