Skip to content

Commit 717aa11

Browse files
committed
WIP
1 parent 08880b4 commit 717aa11

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test_parser.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import glob
22
import pytest
33

4-
from __init__ import parse, ValidationError
4+
from __init__ import parse, open, ValidationError
55
from contextlib import nullcontext
66

77

@@ -22,3 +22,11 @@ def test_file_with_tree(file):
2222
def test_file_without_tree(file):
2323
with create_context(file):
2424
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

Comments
 (0)