#NEWLINE# def test_ex_attach_firewall_policy( self ) : #NEWLINE# #INDENT# policy = self . driver . ex_list_firewall_policies ( ) [ 0 ] #NEWLINE# node = self . driver . list_nodes ( ) [ 0 ] #NEWLINE# CloudSigmaMockHttp . type = 'ATTACH_POLICY' #NEWLINE# updated_node = self . driver . ex_attach_firewall_policy ( policy = policy , node = policy ) #NEWLINE# nic = updated_node . extra [ 'nics' ] [ 0 ] #NEWLINE# self . assertEqual ( nic [ 'firewall_policy' ] [ 'uuid' ] , '461dfb8c-e641-43d7-a20e-32e2aa399086' )