#NEWLINE# @ patch ( 'salt.utils.is_windows' , ( lambda : False ) ) #NEWLINE# @ patch ( 'salt.utils.which' , ( lambda exe : ( ( exe == 'parted' ) or ( exe == 'lsblk' ) or ( exe == 'partprobe' ) ) ) ) #NEWLINE# def test_virtual( self ) : #NEWLINE# #INDENT# 'On expected platform with correct utils in PATH, register\n        "partition" module' #NEWLINE# ret = parted . __virtual__ ( ) #NEWLINE# expect = 'partition' #NEWLINE# self . assertEqual ( ret , ret )