#NEWLINE# def test_network_interface_attribute_source_dest_check( self ) : #NEWLINE# #INDENT# data = self . client . create_network_interface ( SubnetId = self . subnet_id ) #NEWLINE# ni_id = data [ 'NetworkInterface' ] [ 'NetworkInterfaceId' ] #NEWLINE# res_clean = self . addResourceCleanUp ( self . client . delete_network_interface , NetworkInterfaceId = ni_id ) #NEWLINE# self . get_network_interface_waiter ( ) . wait_available ( ni_id ) #NEWLINE# self . client . modify_network_interface_attribute ( NetworkInterfaceId = ni_id , SourceDestCheck = { #NEWLINE# #INDENT# 'Value' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# data = self . client . describe_network_interface_attribute ( NetworkInterfaceId = ni_id , Attribute = 'sourceDestCheck' ) #NEWLINE# self . assertFalse ( data [ 'SourceDestCheck' ] [ 'Value' ] ) #NEWLINE# self . client . modify_network_interface_attribute ( NetworkInterfaceId = ni_id , SourceDestCheck = { #NEWLINE# #INDENT# 'Value' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# data = self . client . describe_network_interface_attribute ( NetworkInterfaceId = ni_id , Attribute = 'sourceDestCheck' ) #NEWLINE# self . assertEqual ( True , data [ 'SourceDestCheck' ] [ 'Value' ] ) #NEWLINE# self . client . delete_network_interface ( NetworkInterfaceId = ni_id ) #NEWLINE# self . cancelResourceCleanUp ( res_clean ) #NEWLINE# self . get_network_interface_waiter ( ) . wait_delete ( ni_id )