MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / test___init___

Method test___init___

tests/test_datastructures.py:172–181  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

170 return base_list
171
172 def test___init___(self):
173 class MyDoc(Document):
174 pass
175
176 list_items = [True]
177 doc = MyDoc()
178 base_list = BaseList(list_items, instance=doc, name="my_name")
179 assert isinstance(base_list._instance, Document)
180 assert base_list._name == "my_name"
181 assert base_list == list_items
182
183 def test___iter__(self):
184 values = [True, False, True, False]

Callers

nothing calls this directly

Calls 2

BaseListClass · 0.90
MyDocClass · 0.70

Tested by

no test coverage detected