We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08880b4 commit 717aa11Copy full SHA for 717aa11
test_parser.py
@@ -1,7 +1,7 @@
1
import glob
2
import pytest
3
4
-from __init__ import parse, ValidationError
+from __init__ import parse, open, ValidationError
5
from contextlib import nullcontext
6
7
@@ -22,3 +22,11 @@ def test_file_with_tree(file):
22
def test_file_without_tree(file):
23
with create_context(file):
24
parse(filename=file, with_tree=False)
25
+
26
27
+def test_parse_features():
28
+ f = open('fixtures/pass_1.ifc')
29
+ assert f.by_id(1).id == 1
30
+ assert f.by_id(1).type == 'IFCPERSON'
31
+ assert f.by_type('ifcperson')[0].id == 1
32
+ assert f[1][0] is None
0 commit comments