def dxfdict(self):
     d = Dictionary.from_text(ROOTDICT, doc=MockDoc())
     return d
def test_do_not_recover_owner_tag_at_loading_stage():
    # this is the task of the audit process and breaks otherwise the
    # recover mode for test file: "ProE_AC1018.dxf"
    d = Dictionary.from_text(WITHOUT_OWNER_TAG)
    assert d.dxf.hasattr("owner") is False
def test_dictionary_loads_owner_tag():
    d = Dictionary.from_text(WITH_OWNER_TAG)
    assert d.dxf.owner == "FEFE"
 def dxfdict(self):
     return Dictionary.from_text(EMPTY_DICT, doc=MockDoc())