Exemple #1
0
 def test_strip_whitespace_from_version_string(self, ver):
     assert _detect_dxf_version([(9, "$ACADVER"), (3, ver)]) == "AC1015"
Exemple #2
0
 def test_detect_any_well_formed_version(self):
     assert _detect_dxf_version([(9, "$ACADVER"),
                                 (3, "AC9999")]) == "AC9999"
Exemple #3
0
 def test_malformed_version_is_r12(self, ver):
     assert _detect_dxf_version([(9, "$ACADVER"), (3, ver)]) == "AC1009"
Exemple #4
0
 def test_detect_all_supported_versions(self, ver):
     assert _detect_dxf_version([(9, "$ACADVER"), (3, ver)]) == ver
Exemple #5
0
 def test_detect_r12(self):
     assert _detect_dxf_version([(9, "$ACADVER"),
                                 (3, "AC1009")]) == "AC1009"
Exemple #6
0
 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'