( self )
| 40 | class DataInterleaveOpTest( unittest.TestCase ) : |
| 41 | |
| 42 | def test( self ) : |
| 43 | |
| 44 | i = IECore.ObjectVector( |
| 45 | |
| 46 | [ |
| 47 | IECore.IntVectorData( [ 1, 2, 3 ] ), |
| 48 | IECore.IntVectorData( [ 11, 12, 13 ] ), |
| 49 | IECore.IntVectorData( [ 21, 22, 23 ] ), |
| 50 | ] |
| 51 | |
| 52 | ) |
| 53 | |
| 54 | o = IECore.DataInterleaveOp()( |
| 55 | |
| 56 | data = i, |
| 57 | targetType = IECore.IntVectorData.staticTypeId() |
| 58 | |
| 59 | ) |
| 60 | |
| 61 | self.assertEqual( |
| 62 | |
| 63 | o, |
| 64 | IECore.IntVectorData( [ |
| 65 | 1, 11, 21, |
| 66 | 2, 12, 22, |
| 67 | 3, 13, 23, |
| 68 | ] ) |
| 69 | |
| 70 | ) |
| 71 | |
| 72 | def testDataScaling( self ) : |
| 73 |
nothing calls this directly
no test coverage detected