mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
21 lines
638 B
Python
21 lines
638 B
Python
|
|
from behave import step
|
||
|
|
|
||
|
|
from utils import assert_attribute
|
||
|
|
from utils import IfcFile
|
||
|
|
from utils import switch_locale
|
||
|
|
|
||
|
|
|
||
|
|
the_lang = "de"
|
||
|
|
|
||
|
|
|
||
|
|
@step("Die Globale Identifikationskennung (Globally Unique Identifier = GUID) des Projektes ist {guid}")
|
||
|
|
def step_impl(context, guid):
|
||
|
|
switch_locale(context.localedir, the_lang)
|
||
|
|
assert_attribute(IfcFile.get().by_type("IfcProject")[0], "GlobalId", guid)
|
||
|
|
|
||
|
|
|
||
|
|
@step('Der Name, die Abkürzung oder die Kurzkennung des Projektes ist "{value}"')
|
||
|
|
def step_impl(context, value):
|
||
|
|
switch_locale(context.localedir, the_lang)
|
||
|
|
assert_attribute(IfcFile.get().by_type("IfcProject")[0], "Name", value)
|