예제 #1
0
 def dxfdict(self):
     d = Dictionary.from_text(ROOTDICT, doc=MockDoc())
     return d
예제 #2
0
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
예제 #3
0
def test_dictionary_loads_owner_tag():
    d = Dictionary.from_text(WITH_OWNER_TAG)
    assert d.dxf.owner == "FEFE"
예제 #4
0
 def dxfdict(self):
     return Dictionary.from_text(EMPTY_DICT, doc=MockDoc())