예제 #1
0
파일: document.py 프로젝트: yuanhao/mongol
    def setUp(self):
        self.db = connect('mongoltest')

        class Blog(Document):
            title = Property()
            tags = ListProperty()
            author = DictProperty()

        self.Blog = Blog
예제 #2
0
파일: property.py 프로젝트: yuanhao/mongol
 def setUp(self):
     self.db = connect("mongoltest")