#NEWLINE# def test_update_portgroup_duplicated_name( self ) : #NEWLINE# #INDENT# name1 = self . portgroup . name #NEWLINE# portgroup2 = db_utils . create_test_portgroup ( uuid = uuidutils . generate_uuid ( ) , node_id = self . node . id , name = 'name2' , address = 'aa:bb:cc:11:22:55' ) #NEWLINE# self . assertRaises ( exception . PortgroupDuplicateName , self . dbapi . update_portgroup , name1 . id , { #NEWLINE# #INDENT# 'name' : name1 , #NEWLINE# #UNINDENT# } )