def test_imageops_decode(): ops = ImageOps(kConfig) result = ops.decode(constants.kExampleImageFile) assert result.shape == constants.kExampleImageDimensions
def test_imageops_fetch(): ops = ImageOps(kConfig) percept = Percept() percept.locator = constants.kExampleImageFile result = ops.fetch(percept) assert result.shape == constants.kExampleImageDimensions