#NEWLINE# def test_dot_csv_dup( spawnbdb ) : #NEWLINE# #INDENT# c = spawnbdb #NEWLINE# with tempfile . NamedTemporaryFile ( prefix = 'bayeslite-shell' ) as t : #NEWLINE# #INDENT# with open ( t . name , 'w' ) as f : #NEWLINE# #INDENT# f . write ( 'x,X,y\n' ) #NEWLINE# #UNINDENT# c . sendexpectcmd ( ( '.csv t %s' % ( spawnbdb . name , ) ) ) #NEWLINE# c . expect_lines ( [ "Duplicate columns in CSV: [u'x']" ] ) #NEWLINE# c . expect_prompt ( )