#NEWLINE# @ patch ( 'salt.utils.which' , ( lambda exe : ( not ( exe == 'parted' ) ) ) ) #NEWLINE# def test_virtual_bails_without_parted( self ) : #NEWLINE# #INDENT# "If parted not in PATH, __virtual__ shouldn't register module" #NEWLINE# ret = parted . __virtual__ ( ) #NEWLINE# err = ( False , 'The parted execution module failed to load parted binary is not in the path.' ) #NEWLINE# self . assertEqual ( err , ret )