Module Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore TupleLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call NameLoad keyword Str Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn Str NameLoad body Continue Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body Assign NameStore Call NameLoad Assign NameStore Dict Str Str NameLoad ListLoad Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Dict Str Dict Str Num keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Dict Str Dict Str NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIn Str Call NameLoad SubscriptLoad NameLoad Index Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A unittest mongoengine Document connect mongoengine.connection get_db mongoengine.fields StringField N/A __all__ N/A ConvertToNewInheritanceModel ConvertToNewInheritanceModel N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A connect db mongoenginetest N/A N/A self db N/A get_db N/A tearDown N/A N/A self N/A N/A N/A collection N/A N/A N/A self db collection_names N/A N/A N/A system. collection N/A N/A N/A N/A N/A N/A self db drop_collection collection N/A test_how_to_convert_to_the_new_inheritance_model N/A N/A self N/A N/A N/A Demonstrates migrating from 0.7 to 0.8
         Animal N/A Document N/A N/A name N/A StringField N/A meta N/A allow_inheritance indexes True N/A name N/A N/A collection N/A N/A Animal _get_collection N/A N/A N/A collection update N/A N/A $unset N/A _types 1 multi True N/A count N/A N/A N/A N/A collection find N/A _types N/A $exists True count N/A N/A N/A self assertEqual 0 count N/A info N/A N/A collection index_information N/A indexes_to_drop N/A key N/A N/A key value N/A N/A info iteritems N/A _types N/A dict N/A value N/A key N/A index indexes_to_drop N/A N/A N/A N/A collection drop_index index N/A N/A N/A Animal ensure_indexes N/A N/A