def test_dereference(self):
data = {'_id': '1234567890', 'content': 'testcontent'}
ref = DBRef('test.collection', '1234567890')
db.add_oneDictIntoCollection(data, 'test.collection')
self.assertEqual(data, db.dereference(ref))
评论列表
文章目录