def testUseExtras(self):
        Use = use.Use
        Flags = use.LocalFlags
        Arch = use.Arch
        use.clearFlags()
        Arch._setArchProps('LE', 'BE', 'bits32', 'bits64')
        Arch._addFlag('x86', archProps={'LE' : True, 'BE' : False, 'bits32':True, 'bits64' : False } )
        Arch.x86._addFlag('sse')
        Arch.x86._addFlag('sse2', subsumes=['sse'])
        Arch.x86._addFlag('i686', subsumes=['i586', 'i486'])
        Arch.x86._addFlag('i586', subsumes=['i486'])
        Arch.x86._addFlag('i486')
        Arch.x86._addFlag('3dnow')
        Arch.x86._addAlias('3dnow', 'threednow')
        try:
            Arch.x86._addAlias('3dnow', 'threednow')
        except __HOLE__, e:
            assert(str(e) == 'alias is already set')
        else:
            raise
        try:
            Arch.x86._addAlias('3dnow', 'fourdnow')
        except RuntimeError, e:
            assert(str(e) == 'key 3dnow already has an alias')
        else:
            raise
        Arch._setArch('x86', ['i686', 'sse'])
        Use._addFlag('builddocs')
        Flags.smp = True
        assert(Flags.smp == True)
        assert(repr(Flags) == 'Flags: {smp: True}')
        f = use.createFlavor('kernel', [Arch.x86, Arch.x86.sse, Arch.x86.sse2, Use.builddocs, Flags.smp ])
        assert(f.freeze() == '1#x86:sse:~!sse2|5#use:~!builddocs:~kernel.smp') 
        use.Use._addFlag('bootstrap', required=False, value=True)
        assert(use.Use.bootstrap._toDependency().freeze() == '5#use:~bootstrap')
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/buildtest/usetest.py/TestUse.testUseExtras