#NEWLINE# def test_args_array_to_patch_format_error( self ) : #NEWLINE# #INDENT# my_args = { #NEWLINE# #INDENT# 'attributes' : [ 'foobar' ] , #NEWLINE# 'op' : 'add' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( exc . CommandError , utils . args_array_to_patch , my_args [ 'op' ] , my_args [ 'attributes' ] )