MCPcopy Create free account
hub / github.com/MITK/MITK / assert_loads

Function assert_loads

Modules/Python/test/pytest/test_ioutil.py:27–30  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

25 image.save(str(path))
26
27 def assert_loads(**kwargs):
28 results = mitk.IOUtil.load(str(path), **kwargs)
29 assert len(results) >= 1
30 np.testing.assert_array_equal(np.asarray(results[0]), array)
31
32 assert_loads(reader_preferences=None, reader_blacklist=None)
33 assert_loads(reader_preferences=[], reader_blacklist=[])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected