<s> import unittest <EOL> import IECore <EOL> import Gaffer <EOL> import GafferTest <EOL> class SubGraphTest ( GafferTest . TestCase ) : <EOL> def testDerivingInPython ( self ) : <EOL> class MySubGraph ( Gaffer . SubGraph ) : <EOL> def __init__ ( self , name = "<STR_LIT>" ) : <EOL> Gaffer . SubGraph . __init__ ( self , name ) <EOL> IECore . registerRunTimeTyped ( MySubGraph ) <EOL> Gaffer . Metadata . registerNode ( <EOL> MySubGraph , <EOL> "<STR_LIT:description>" , <EOL> """<STR_LIT>""" , <EOL> ) <EOL> n = MySubGraph ( ) <EOL> self . assertEqual ( <EOL> Gaffer . Metadata . nodeValue ( n , "<STR_LIT:description>" ) , <EOL> "<STR_LIT>" <EOL> ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
