#NEWLINE# def test_wrong_density( self ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# 'x' : [ 0 , 2 ] , #NEWLINE# 'y' : [ 0 , 2 ] , #NEWLINE# 'u' : [ [ ( - 1 ) , ( - 5 ) ] , [ ( - 1 ) , ( - 5 ) ] ] , #NEWLINE# 'v' : [ [ 1 , 1 ] , [ ( - 3 ) , ( - 3 ) ] ] , #NEWLINE# 'density' : 0 , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValueError , tls . FigureFactory . create_streamline , ** self )