added drop_collection for test

This commit is contained in:
Wilson Júnior 2011-10-19 06:55:05 -02:00
parent b09c52fc7e
commit 7f2b686ab5

View File

@ -992,6 +992,9 @@ class FieldTest(unittest.TestCase):
class Company(Document):
name = StringField()
Product.drop_collection()
Company.drop_collection()
ten_gen = Company(name='10gen')
ten_gen.save()
mongodb = Product(name='MongoDB', company=ten_gen)