@dec.onlyif((lambda : ((sys.platform != 'win32') or has_pywin32())), 'This test runs on posix or in win32 with win32api installed')
def test_find_cmd_fail():
 nt.assert_raises(FindCmdError, find_cmd, 'asdfasdf')

@ dec . onlyif ( ( lambda : ( ( sys . platform != 'win32' ) or has_pywin32 ( ) ) ) , 'This test runs on posix or in win32 with win32api installed' ) def test_find_cmd_fail ( ) : nt . assert_raises ( FindCmdError , find_cmd , 'asdfasdf' )
make sure that findcmderror is raised if we cant find the cmd .