#NEWLINE# @ mock . patch . object ( images , 'get_image_properties' , autospec = True ) #NEWLINE# @ mock . patch . object ( glance_utils , 'is_glance_image' , autospec = True ) #NEWLINE# def test_is_whole_disk_image_no_img_src( self , mock_igi , mock_gip ) : #NEWLINE# #INDENT# instance_info = { #NEWLINE# #INDENT# 'image_source' : '' , #NEWLINE# #UNINDENT# } #NEWLINE# iwdi = images . is_whole_disk_image ( 'context' , iwdi ) #NEWLINE# self . assertIsNone ( iwdi ) #NEWLINE# self . assertFalse ( mock_igi . called ) #NEWLINE# self . assertFalse ( mock_gip . called )