#NEWLINE# def test_dot_graph_defaults( ) : #NEWLINE# #INDENT# default_name = 'mydask' #NEWLINE# default_format = 'png' #NEWLINE# target = '.' . join ( [ default_name , default_format ] ) #NEWLINE# ensure_not_exists ( target ) #NEWLINE# try : #NEWLINE# #INDENT# result = dot_graph ( dsk ) #NEWLINE# assert os . path . isfile ( target ) #NEWLINE# assert isinstance ( result , Image ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# ensure_not_exists ( target )