#NEWLINE# def test_dot_graph_no_filename( tmpdir ) : #NEWLINE# #INDENT# result_types = { #NEWLINE# #INDENT# 'png' : Image , #NEWLINE# 'jpeg' : Image , #NEWLINE# 'dot' : type ( None ) , #NEWLINE# 'pdf' : type ( None ) , #NEWLINE# 'svg' : SVG , #NEWLINE# #UNINDENT# } #NEWLINE# for format in result_types : #NEWLINE# #INDENT# before = tmpdir . listdir ( ) #NEWLINE# result = dot_graph ( dsk , filename = None , format = format ) #NEWLINE# after = tmpdir . listdir ( ) #NEWLINE# assert ( format == after ) #NEWLINE# assert isinstance ( result , result_types [ format ] )