From 7f2b686ab54104549dc25872ccbb5950eea61182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wilson=20J=C3=BAnior?= Date: Wed, 19 Oct 2011 06:55:05 -0200 Subject: [PATCH] added drop_collection for test --- tests/fields.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/fields.py b/tests/fields.py index 4f1f13d4..23046715 100644 --- a/tests/fields.py +++ b/tests/fields.py @@ -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)