From e71901cd786f4bb57d4e18910e8c7b2cc3efb7a4 Mon Sep 17 00:00:00 2001 From: Alexander Artemenko Date: Mon, 7 Sep 2009 16:29:09 -0400 Subject: [PATCH] Fixed test for AttributedDict. --- test/test_document.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_document.py b/test/test_document.py index 6ca24fe..f5926e5 100644 --- a/test/test_document.py +++ b/test/test_document.py @@ -6,6 +6,8 @@ from pymongo.connection import Connection from pymongo.database import Database from mongobongo import Document +from mongobongo.attributed import AttributedDict + def get_connection(): @@ -96,8 +98,6 @@ def test_change_attributes(self): self.assertEqual(dict(title = 'Just a Poem', tags = ['one', 'two']), doc.article) def test_dict_proxy(self): - from pymongo.document import AttributedDict - d = dict(title = 'Just an Example', tags = ['test', 'python']) dp = AttributedDict(d) dp.author = dict(name = 'Alexander')