#NEWLINE# def test_instantiation_5( ) : #NEWLINE# #INDENT# source = dedent ( "    template Main(Content):\n        Content:\n            text = 'foo'\n\n    " ) #NEWLINE# from enaml.widgets.api import Field #NEWLINE# main = compile_source ( source , 'Main' ) #NEWLINE# item = main ( Field ) ( ) [ 0 ] #NEWLINE# assert ( item . text == 'foo' )