Publish implementation of geocoding MicroMVD

This commit is contained in:
Dion Moult
2020-08-06 18:32:33 +10:00
parent bc8b377d6d
commit 562dc72129
3 changed files with 87 additions and 6 deletions
@@ -1,16 +1,16 @@
from behave import step
from utils import IfcFile, assert_attribute
from utils import IfcFile, assert_attribute, assert_type
@step('The element {guid} is an {ifc_class} only')
def step_impl(context, guid, ifc_class):
element = IfcFile.by_guid(guid)
assert element.is_a() == ifc_class, 'The element {} is an {} instead of {}.'.format(element, element.is_a(), ifc_class)
assert_type(element, ifc_class, is_exact=True)
@step('The element {guid} is an {ifc_class}')
def step_impl(context, guid, ifc_class):
element = IfcFile.by_guid(guid)
assert element.is_a(ifc_class), 'The element {} is an {} instead of {}.'.format(element, element.is_a(), ifc_class)
assert_type(element, ifc_class)
@step('The element {guid} is further defined as a {predefined_type}')