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

Function test_Integer_to_xml

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

Source from the content-addressed store, hash-verified

190 ("integer_another_name", 42),
191])
192def test_Integer_to_xml(name, start):
193 r = Integer(name, start)
194 xml = r.to_xml()
195 children = list(xml)
196 assert len(children) == 1
197 if start is not None:
198 assert children[0].attrib['start'] == str(start)
199
200
201@pytest.mark.parametrize("name,start", [

Callers

nothing calls this directly

Calls 2

to_xmlMethod · 0.95
IntegerClass · 0.90

Tested by

no test coverage detected