#NEWLINE# def test_inspect_image_undefined_id( self ) : #NEWLINE# #INDENT# for arg in ( None , '' , { #NEWLINE# #INDENT# True : True , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# with pytest . raises ( docker . errors . NullResource ) as excinfo : #NEWLINE# #INDENT# self . client . inspect_image ( excinfo ) #NEWLINE# #UNINDENT# self . assertEqual ( excinfo . value . args [ 0 ] , 'image or container param is undefined' )