ϪfdZddlZddlmZddlmZGddej ZdZdZ Gd d ej Z Gd d ejZ Gd dZ Gddej Zy)zThis 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. NmergeFunctionMetadata)unittestceZdZddZddZy)FooTestNcyNselfs ;/usr/lib/python3/dist-packages/twisted/trial/test/sample.pytest_foozFooTest.test_foo cyr r r s r test_barzFooTest.test_barrrreturnN__name__ __module__ __qualname__rrr rr rr   rrcfd}|S)z Decorate a function without preserving the name of the original function. Always return a function with the same name. c|i|Sr r argskwargsfns r nameCollisionz#badDecorator..nameCollision4"6""rr rr s` r badDecoratorr#s # rc&fd}t|S)z= Decorate a function and preserve the original name. c|i|Sr r rs r r z$goodDecorator..nameCollision&r!rrr"s` r goodDecoratorr&!s # !] 33rc\eZdZddZeeZddZeeZddZeeZddZ y)DecorationTestNcy)z This test method is decorated in a way that gives it a confusing name that collides with another method. Nr r s r test_badDecoratorz DecorationTest.test_badDecorator-rcy)zQ This test method is decorated in a way that preserves its name. Nr r s r test_goodDecoratorz!DecorationTest.test_goodDecorator5r+rcy)z~ This is secretly a test method and will be decorated and then renamed so test discovery can find it. Nr r s r renamedDecoratorzDecorationTest.renamedDecorator<r+rcy)zJ This isn't a test, it's just here to collide with tests. Nr r s r r zDecorationTest.nameCollisionDr+rr) rrrr*r#r-r&r/test_renamedDecoratorr r rr r(r(,s@ %%67 ''9: **:; rr(ceZdZddZddZy) PyunitTestNcyr r r s r rzPyunitTest.test_fooKrrcyr r r s r rzPyunitTest.test_barNrrrrr rr r3r3Jrrr3ceZdZddZy)NotATestNcyr r r s r rzNotATest.test_fooSrrr)rrrrr rr r7r7Rs rr7c$eZdZddZddZddZy) AlphabetTestNcyr r r s r test_azAlphabetTest.test_aXrrcyr r r s r test_bzAlphabetTest.test_b[rrcyr r r s r test_czAlphabetTest.test_c^rrr)rrrr<r>r@r rr r:r:Ws   rr:)__doc__rpyunittwisted.python.utilr twisted.trialSynchronousTestCaserr#r&r(TestCaser3r7r:r rr rGso 5" h**  4 X11 <     8// r