MCPcopy Create free account
hub / github.com/NTNU-IHB/PythonFMU / test_Boolean_to_xml

Function test_Boolean_to_xml

pythonfmu/tests/test_variables.py:169–175  ·  view source on GitHub ↗
(name, start)

Source from the content-addressed store, hash-verified

167 ("boolean_yet_another", False),
168])
169def test_Boolean_to_xml(name, start):
170 r = Boolean(name, start)
171 xml = r.to_xml()
172 children = list(xml)
173 assert len(children) == 1
174 if start is not None:
175 assert children[0].attrib['start'] == str(start).lower()
176
177
178@pytest.mark.parametrize("name,start", [

Callers

nothing calls this directly

Calls 2

to_xmlMethod · 0.95
BooleanClass · 0.90

Tested by

no test coverage detected