o ¯b$ã@sŽdZddlZddlmZddlmZGdd„dejƒZdd„Zd d „Z Gd d „d ejƒZ Gd d„dej ƒZ Gdd„dƒZ Gdd„dejƒZdS)z¶This module is used by test_loader to test the Trial test loading functionality. Do NOT change the number of tests in this module. Do NOT change the names the tests in this module. éN©ÚmergeFunctionMetadata)Úunittestc@óeZdZdd„Zdd„ZdS)ÚFooTestcCódS©N©©Úselfr r ú;/usr/lib/python3/dist-packages/twisted/trial/test/sample.pyÚtest_fooózFooTest.test_foocCrrr r r r r Útest_barrzFooTest.test_barN©Ú__name__Ú __module__Ú __qualname__r rr r r r r ó rcs‡fdd„}|S)z„ Decorate a function without preserving the name of the original function. Always return a function with the same name. cóˆ|i|¤ŽSrr ©ÚargsÚkwargs©Úfnr r Ú nameCollisionóz#badDecorator..nameCollisionr ©rrr rr Ú badDecorators rcs‡fdd„}tˆ|ƒS)z= Decorate a function and preserve the original name. crrr rrr r r&rz$goodDecorator..nameCollisionrrr rr Ú goodDecorator!s  rc@sDeZdZdd„ZeeƒZdd„ZeeƒZdd„ZeeƒZdd„Z d S) ÚDecorationTestcCódS)z‚ This test method is decorated in a way that gives it a confusing name that collides with another method. Nr r r r r Útest_badDecorator-óz DecorationTest.test_badDecoratorcCr!)zQ This test method is decorated in a way that preserves its name. Nr r r r r Útest_goodDecorator5r#z!DecorationTest.test_goodDecoratorcCr!)z~ This is secretly a test method and will be decorated and then renamed so test discovery can find it. Nr r r r r ÚrenamedDecorator<r#zDecorationTest.renamedDecoratorcCr!)zJ This isn't a test, it's just here to collide with tests. Nr r r r r rDr#zDecorationTest.nameCollisionN) rrrr"rr$rr%Útest_renamedDecoratorrr r r r r ,s r c@r)Ú PyunitTestcCrrr r r r r r KrzPyunitTest.test_foocCrrr r r r r rNrzPyunitTest.test_barNrr r r r r'Jrr'c@seZdZdd„ZdS)ÚNotATestcCrrr r r r r r SrzNotATest.test_fooN)rrrr r r r r r(Rs r(c@s$eZdZdd„Zdd„Zdd„ZdS)Ú AlphabetTestcCrrr r r r r Útest_aXrzAlphabetTest.test_acCrrr r r r r Útest_b[rzAlphabetTest.test_bcCrrr r r r r Útest_c^rzAlphabetTest.test_cN)rrrr*r+r,r r r r r)Ws r))Ú__doc__rÚpyunitÚtwisted.python.utilrÚ twisted.trialÚSynchronousTestCaserrrr ÚTestCaser'r(r)r r r r Ús