#NEWLINE# def test_verify_checksum_invalid_json( self ) : #NEWLINE# #INDENT# with intercept_log_messages ( ) as stream : #NEWLINE# #INDENT# with utils . tempdir ( ) as tmpdir : #NEWLINE# #INDENT# ( image_cache_manager , fname ) = self . _check_body ( tmpdir , 'csum invalid, not json' ) #NEWLINE# res = image_cache_manager . _verify_checksum ( self . img , fname , create_if_missing = False ) #NEWLINE# self . assertFalse ( res ) #NEWLINE# log = stream . getvalue ( ) #NEWLINE# self . assertNotEqual ( log . find ( 'image verification skipped' ) , ( - 1 ) )