def testRequiresExceptions(self):
        phpReq = deps.ThawDependencySet( \
                '4#php-mysql::lib|4#php::lib|4#php::runtime')
        srcVersion  = self.addCompAndPackage('foo:runtime', '1.0-1-1',
                      fileContents = [ '/bin/bar',
                           '/bin/foo',
                           ('/splat/index.php', rephelp.RegularFile(
                                            contents = 'contents',
                                            perms = 0700,
                                            requires = phpReq) )] )
        def ThisGetRecipe(*args, **kwargs):
            return """
class fooRecipe(DerivedPackageRecipe):
    name = 'foo'
    version = '1.0'

    clearBuildReqs()
    def setup(r):
        r.macros.mwdir = '/splat'
        r.Requires(exceptions='%(mwdir)s/index.php')"""
        self.mock(self, 'getRecipe', ThisGetRecipe)

        trv = self.buildDerivation('foo:runtime', srcVersion, "pass")
        noPhpReq = deps.ThawDependencySet('')
        self.assertEquals(trv.getRequires(), noPhpReq)
testing if the id argument value is correctly passed to the id
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/buildtest/derivedtest.py/DerivedPackageTest.testRequiresExceptions--crossover with--dataset/ETHPy150Open eoyilmaz/anima/tests/previs/test_clip.py/ClipTestCase.test_id_argument_is_working_properly