#NEWLINE# def test_str2list( self ) : #NEWLINE# #INDENT# string = 'ip 1.2.3.4\nip 1.2.3.5\nip 1.2.3.6' #NEWLINE# result = str2list ( string ) #NEWLINE# self . assertEqual ( len ( result ) , 3 ) #NEWLINE# self . assertEqual ( string [ 0 ] , '1.2.3.4' ) #NEWLINE# self . assertEqual ( result [ 1 ] , '1.2.3.5' ) #NEWLINE# self . assertEqual ( result [ 2 ] , '1.2.3.6' )