ϪfdZddlmZddlmZddlmZddlmZddl m Z dZ dZ ed sd Z d Z ed sd Z d Z ddlZ ej j#ee e Gdde eZGdde eZy#ej$ef$rZd Z deezZ YdZ[HdZ[wwxYw#e$rd Z dZ Y[wxYw)z1 Tests for the command-line interfaces to conch. )skipIf) requireModule)ZshScriptTestMixin)ScriptTestsMixin)TestCaseF cryptographyTzcan't run w/o cryptographyttyzcan't run w/o ttyNzCan't test Tkinter: zcan't run w/o tkinterc0eZdZdZddZddZddZddZy) ScriptTestsz& Tests for the Conch scripts. Nc&|jdy)Nz conch/conch scriptTestselfs A/usr/lib/python3/dist-packages/twisted/conch/test/test_scripts.py test_conchzScriptTests.test_conch/s  &c&|jdy)Nz conch/cftprrs r test_cftpzScriptTests.test_cftp2s  %rc&|jdy)Nz conch/ckeygenrrs r test_ckeygenzScriptTests.test_ckeygen5 (rc&|jdy)Nz conch/tkconchrrs r test_tkconchzScriptTests.test_tkconch8rr)returnN)__name__ __module__ __qualname____doc__rrrrrrr r )s'&))rr ceZdZdZgdZy)ZshIntegrationTestszH Test that zsh completion functions are generated without error ))conchz)twisted.conch.scripts.conch.ClientOptions)cftpz(twisted.conch.scripts.cftp.ClientOptions)ckeygenz,twisted.conch.scripts.ckeygen.GeneralOptions)tkconchz,twisted.conch.scripts.tkconch.GeneralOptionsN)rrrr generateForr!rrr#r#<sKrr#)r unittestrtwisted.python.reflectr"twisted.python.test.test_shellcompr!twisted.scripts.test.test_scriptsrtwisted.trial.unittestrdoSkip skipReason cryptoSkipttySkiptkinterTkdestroyTclError RuntimeErrorestr ImportErrorr r#r!rrr:s0A>+   ^$ F-JU F!G 5 5  )(,))$ ($6 7   l +5+c!f4 5 ) F(J)s)B2BB/ B**B/2 B>=B>