#NEWLINE# def test_ex_list_firewall_policies( self ) : #NEWLINE# #INDENT# policies = self . driver . ex_list_firewall_policies ( ) #NEWLINE# policy = policies [ 1 ] #NEWLINE# rule = policy . rules [ 0 ] #NEWLINE# self . assertEqual ( policy . name , 'My awesome policy' ) #NEWLINE# self . assertEqual ( rule . action , 'drop' ) #NEWLINE# self . assertEqual ( rule . direction , 'out' ) #NEWLINE# self . assertEqual ( rule . dst_ip , '23.0.0.0/32' ) #NEWLINE# self . assertEqual ( rule . ip_proto , 'tcp' ) #NEWLINE# self . assertEqual ( policy . dst_port , None ) #NEWLINE# self . assertEqual ( rule . src_ip , None ) #NEWLINE# self . assertEqual ( rule . src_port , None ) #NEWLINE# self . assertEqual ( rule . comment , 'Drop traffic from the VM to IP address 23.0.0.0/32' )