#NEWLINE# def test_validate_package_exception( qipkg_action ) : #NEWLINE# #INDENT# pkg_path = os . path . join ( os . path . dirname ( __file__ ) , 'projects' , 'invalid_package.pkg' ) #NEWLINE# error = qipkg_action ( 'validate_package' , error , raises = True ) #NEWLINE# assert ( error == 'Given package does not satisfy default package requirements' )