#NEWLINE# def test_assign_columns( self ) : #NEWLINE# #INDENT# self . frame [ 'hi' ] = 'there' #NEWLINE# frame = self . frame . copy ( ) #NEWLINE# frame . columns = [ 'foo' , 'bar' , 'baz' , 'quux' , 'foo2' ] #NEWLINE# assert_series_equal ( self . frame [ 'C' ] , self [ 'baz' ] , check_names = False ) #NEWLINE# assert_series_equal ( self . frame [ 'hi' ] , frame [ 'foo2' ] , check_names = False )