Closed bbartley closed 3 years ago
See #176, which did part of the job, but not all of the job. We should add a unit test similar to the one related to #176 so that setting the document pointer works when objects are composed before adding in addition to composition after the parent object is added to the document.
When child and grandchild (?) objects are composed together, and then added to a TopLevel, the grandchild's document pointer does not get set. I believe this happens here: https://github.com/SynBioDex/pySBOL3/blob/master/sbol3/ownedobject.py#L30
Here is a minimal example: