#NEWLINE# def test_set_alias_same_name( self ) : #NEWLINE# #INDENT# class Test ( resource . Resource ) : #NEWLINE# #INDENT# attr = resource . prop ( 'something' , alias = 'attr' ) #NEWLINE# #UNINDENT# val = 'hey' #NEWLINE# args = { #NEWLINE# #INDENT# 'something' : val , #NEWLINE# #UNINDENT# } #NEWLINE# sot = Test ( args ) #NEWLINE# self . assertEqual ( val , sot . _attrs [ 'something' ] ) #NEWLINE# self . assertEqual ( val , sot . attr )