def test_read_image(): im = cellom2tif.read_image(cfile) assert im.shape == (512, 512)
def test_vm_killed_error(): cellom2tif.done() with pytest.raises(RuntimeError) as err: cellom2tif.read_image(cfile) assert err.value.args[0].startswith('The Java Virtual Machine')
def test_read_image_from_reader(): rdr = bf.ImageReader(cfile) im = cellom2tif.read_image(rdr) assert im.shape == (512, 512)
def test_vm_killed_error(): cellom2tif.done() with pytest.raises(RuntimeError) as err: cellom2tif.read_image(cfile) assert err.value.message.startswith('The Java Virtual Machine')