def testMixedFlavor(self):
        recipe = textwrap.dedent("""
            class TestFlavors(PackageRecipe):
                name = "%(pkgname)s"
                version = "0.1"

                clearBuildReqs()

                def setup(r):
                    r.addSource('sparc-libelf-0.97.so', dir='/usr/lib')
            """)
        pkgname = "test-flavors"
        repos = self.openRepository()
        os.chdir(self.workDir)
        self.newpkg(pkgname)
        os.chdir(pkgname)
        self.writeFile(pkgname + '.recipe', recipe % dict(pkgname=pkgname))
        self.addfile(pkgname + '.recipe')
        self.commit()
        built = self.cookFromRepository(pkgname)
        self.assertEquals(built[0][2], deps.Flavor())
        v = versions.VersionFromString(built[0][1])

        self.mkbranch(self.defLabel, self.shadowLabel, pkgname + ":source",
                      shadow=True)
        os.chdir(self.workDir)
        self.checkout(pkgname, self.shadowLabel.asString(),
                      dir=pkgname + '-derived')
        os.chdir(pkgname + '-derived')
        self.writeFile(pkgname + '.recipe',
                self.getRecipe(pkgname, v, ['pass']))
        self.commit()
        built = self.cookFromRepository(pkgname, buildLabel=self.shadowLabel)
        self.assertEquals(built[0][2], deps.Flavor())
e.g. Training Venues
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/buildtest/derivedtest.py/DerivedPackageTest.testMixedFlavor--crossover with--dataset/ETHPy150Open sahana/eden/controllers/vol.py/facility