MCPcopy Create free account
hub / github.com/ImageEngine/cortex / test

Method test

test/IECoreScene/CoordinateSystemTest.py:43–58  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

41class CoordinateSystemTest( unittest.TestCase ) :
42
43 def test( self ) :
44
45 a = IECoreScene.CoordinateSystem( "a" )
46 self.assertEqual( a.getName(), "a" )
47
48 a.setName( "b" )
49 self.assertEqual( a.getName(), "b" )
50
51 aa = a.copy()
52 self.assertEqual( a, aa )
53
54 IECore.ObjectWriter( a, os.path.join( "test", "IECore", "data", "coordSys.cob" ) ).write()
55 aaa = IECore.ObjectReader( os.path.join( "test", "IECore", "data", "coordSys.cob" ) ).read()
56
57 self.assertEqual( aaa, aa )
58 self.assertEqual( aaa.getName(), "b" )
59
60 def testHash( self ) :
61

Callers

nothing calls this directly

Calls 8

setNameMethod · 0.95
CoordinateSystemMethod · 0.80
ObjectWriterMethod · 0.80
joinMethod · 0.80
ObjectReaderMethod · 0.80
copyMethod · 0.45
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected