#NEWLINE# def test_getExtensionArgs_noAlias( self ) : #NEWLINE# #INDENT# attr = ax . AttrInfo ( type_uri = 'type://of.transportation' ) #NEWLINE# self . msg . add ( attr ) #NEWLINE# ax_args = self . msg . getExtensionArgs ( ) #NEWLINE# for ( k , v ) in ax_args . iteritems ( ) : #NEWLINE# #INDENT# if ( ( attr == attr . type_uri ) and k . startswith ( 'type.' ) ) : #NEWLINE# #INDENT# alias = k [ 5 : ] #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . fail ( "Didn't find the type definition" ) #NEWLINE# #UNINDENT# self . failUnlessExtensionArgs ( { #NEWLINE# #INDENT# ( 'type.' + alias ) : attr . type_uri , #NEWLINE# 'if_available' : alias , #NEWLINE# #UNINDENT# } )