def test_strip_whitespace_from_version_string(self, ver): assert _detect_dxf_version([(9, "$ACADVER"), (3, ver)]) == "AC1015"
def test_detect_any_well_formed_version(self): assert _detect_dxf_version([(9, "$ACADVER"), (3, "AC9999")]) == "AC9999"
def test_malformed_version_is_r12(self, ver): assert _detect_dxf_version([(9, "$ACADVER"), (3, ver)]) == "AC1009"
def test_detect_all_supported_versions(self, ver): assert _detect_dxf_version([(9, "$ACADVER"), (3, ver)]) == ver
def test_detect_r12(self): assert _detect_dxf_version([(9, "$ACADVER"), (3, "AC1009")]) == "AC1009"
def test_missing_dxf_version_is_r12(self): assert _detect_dxf_version([]) == "AC1009"
def test_detect_any_well_formed_version(self): assert _detect_dxf_version([(9, '$ACADVER'), (3, 'AC9999')]) == 'AC9999'
def test_detect_r12(self): assert _detect_dxf_version([(9, '$ACADVER'), (3, 'AC1009')]) == 'AC1009'