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

Method testEmptyVector

test/IECore/ParameterParser.py:465–470  ·  view source on GitHub ↗

Test that serializing then parsing a vector with no elements in it succeeds

( self )

Source from the content-addressed store, hash-verified

463 self.assertEqual( p["testName"].getValue(), v )
464
465 def testEmptyVector( self ) :
466 """ Test that serializing then parsing a vector with no elements in it succeeds """
467
468 p = IECore.StringVectorParameter( name = "name", description = "description", defaultValue = IECore.StringVectorData() )
469 s = IECore.ParameterParser().serialise( p )
470 IECore.ParameterParser().parse( s, p )
471
472 def testNoValueProvidedSyntaxError( self ) :
473

Callers

nothing calls this directly

Calls 2

serialiseMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected