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

Function test_String_to_xml

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

Source from the content-addressed store, hash-verified

236 ("string_another_name", "dummy"),
237])
238def test_String_to_xml(name, start):
239 r = String(name, start)
240 xml = r.to_xml()
241 children = list(xml)
242 assert len(children) == 1
243 if start is not None:
244 assert children[0].attrib['start'] == str(start)

Callers

nothing calls this directly

Calls 2

to_xmlMethod · 0.95
StringClass · 0.90

Tested by

no test coverage detected