( self )
| 44 | class AlphaTextureTest( unittest.TestCase ) : |
| 45 | |
| 46 | def test( self ) : |
| 47 | |
| 48 | i = IECore.Reader.create( os.path.join( os.path.dirname( __file__ ), "images", "a.tif" ) ).read() |
| 49 | i["A"] = i["Y"] |
| 50 | del i["Y"] |
| 51 | |
| 52 | t = IECoreGL.AlphaTexture( i, False ) |
| 53 | |
| 54 | ii = t.imagePrimitive() |
| 55 | |
| 56 | res = IECoreImage.ImageDiffOp()( |
| 57 | imageA = i, |
| 58 | imageB = ii, |
| 59 | maxError = 0.001, |
| 60 | skipMissingChannels = False |
| 61 | ) |
| 62 | |
| 63 | self.assertFalse( res.value ) |
| 64 | |
| 65 | if __name__ == "__main__": |
| 66 | unittest.main() |
nothing calls this directly
no test coverage detected