#NEWLINE# def test_ex_tag_resource_invalid_resource_object( self ) : #NEWLINE# #INDENT# tag = self . driver . ex_list_tags ( ) [ 0 ] #NEWLINE# expected_msg = "Resource doesn't have id attribute" #NEWLINE# self . assertRaisesRegexp ( ValueError , expected_msg , self . driver . ex_tag_resource , tag = tag , resource = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )