#NEWLINE# def test_resource( self ) : #NEWLINE# #INDENT# cft = core . CloudFormationTemplate ( ) #NEWLINE# cft . resources . test = core . Resource ( 'TestResource' , 'AWS::Resource::Test' ) #NEWLINE# self . assertIn ( 'TestResource' , cft . resources ) #NEWLINE# expected_out = dedent ( '        {\n          "Type": "AWS::Resource::Test"\n        }' ) #NEWLINE# self . assertEqual ( unicode ( cft . resources . test ) , cft )