#NEWLINE# @ patch ( 'salt.modules.pip._get_cached_requirements' ) #NEWLINE# def test_install_failed_cached_requirements( self , get_cached_requirements ) : #NEWLINE# #INDENT# get_cached_requirements . return_value = False #NEWLINE# ret = pip . install ( requirements = 'salt://my_test_reqs' ) #NEWLINE# self . assertEqual ( False , ret [ 'result' ] ) #NEWLINE# self . assertIn ( 'my_test_reqs' , get_cached_requirements [ 'comment' ] )