#NEWLINE# def test_properties( self ) : #NEWLINE# #INDENT# properties = core . Properties ( { #NEWLINE# #INDENT# 'Key1' : 'Value1' , #NEWLINE# 'Key2' : 'Value2' , #NEWLINE# #UNINDENT# } ) #NEWLINE# resource = core . Resource ( 'ResourceName' , 'AWS::Testing::ResourceType' ) #NEWLINE# resource . add ( properties ) #NEWLINE# self . assertEqual ( resource . name , 'ResourceName' ) #NEWLINE# self . assertIn ( 'Properties' , resource ) #NEWLINE# properties = resource [ 'Properties' ] #NEWLINE# self . assertEqual ( resource [ 'Properties' ] [ 'Key1' ] , 'Value1' ) #NEWLINE# self . assertEqual ( properties [ 'Properties' ] [ 'Key2' ] , 'Value2' )