mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
11 lines
419 B
Python
11 lines
419 B
Python
|
|
import test.bootstrap
|
||
|
|
import ifcopenshell.api
|
||
|
|
|
||
|
|
|
||
|
|
class TestAddReference(test.bootstrap.IFC4):
|
||
|
|
def test_adding_a_reference(self):
|
||
|
|
library = ifcopenshell.api.run("library.add_library", self.file, name="Name")
|
||
|
|
reference = ifcopenshell.api.run("library.add_reference", self.file, library=library)
|
||
|
|
assert reference.is_a("IfcLibraryReference")
|
||
|
|
assert reference.ReferencedLibrary == library
|