ó  îRac@sydZddlZddlZddlZdejfd„ƒYZdejfd„ƒYZedkruej ƒndS(s"Unit tests for the common.py file.iÿÿÿÿNtTestTopologicallySortedcBseZd„Zd„ZRS(csriddgd6gd6dgd6dgd6‰‡fd†}|jtjjˆjƒ|ƒddddgƒdS(sATest that sorting works on a valid graph with one possible order.tbtctatdcstˆ|ƒS(N(ttuple(tnode(tgraph(sm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pytGetEdgesN(t assertEqualtgyptcommontTopologicallySortedtkeys(tselfR((Rsm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pyt test_Valids   csiidgd6dgd6dgd6dgd6‰‡fd†}|jtjjtjjˆjƒ|ƒdS(s3Test that an exception is thrown on a cyclic graph.RRRRcstˆ|ƒS(N(R(R(R(sm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pyR%sN(t assertRaisesR R t CycleErrorR R (RR((Rsm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pyt test_Cycles    (t__name__t __module__RR(((sm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pyRs t TestGetFlavorcBsAeZdZdZd„Zd„Zd„Zd„Zd„ZRS(s0Test that gyp.common.GetFlavor works as intendedtcCstj|_dS(N(tsystplatformtoriginal_platform(R((sm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pytsetUp0scCs|jt_dS(N(RRR(R((sm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pyttearDown3scCs)|t_|j|tjj|ƒƒdS(N(RRR R R t GetFlavor(Rtexpectedtargumenttparam((sm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pyt assertFlavor6s cCs‰|jddiƒ|jddiƒ|jddiƒ|jddiƒ|jddiƒ|jd d iƒ|jd d iƒdS( Ntfreebsdtfreebsd9t freebsd10topenbsdtopenbsd5tsolaristsunos5tsunostlinuxtlinux2tlinux3(R (R((sm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pyttest_platform_default:scCs|jddidd6ƒdS(NtfoobarR*tflavor(R (R((sm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pyt test_paramCs( RRt__doc__RRRR R,R/(((sm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pyR,s    t__main__( R0t gyp.commonR tunittestRtTestCaseRRRtmain(((sm/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/common_test.pyts