Current Path : /usr/lib/python2.7/dist-packages/twisted/python/test/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/python/test/test_zshcomp.pyc |
oUNc @ s d Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z m Z d e j f d YZ d e j f d YZ d e f d YZ d Z d e j f d YZ d Z d S( s' Test cases for twisted.python.zshcomp iN( t StringIO( t unittest( t zshcompt usaget ZshcompTestCasec B sD e Z d Z d Z d Z d Z d Z d Z d Z RS( sT Tests for the zsh completion function builder in twisted/python/zshcomp.py c C s | j } t j | g t j | D] } | d ^ q) } x] t j D]R } | d | k re qI n t j j | d | d } | j t j j | qI Wd S( sn Build all the completion functions for twisted commands - no errors should be raised i t _N( t mktempt ost mkdirR t makeCompFunctionFilest generateFort patht joint assertTruet exists( t selft dirnamet xt skippedCmdst infot funcPath( ( sD /usr/lib/python2.7/dist-packages/twisted/python/test/test_zshcomp.pyt test_buildAll s &c C s t } t j d | d } t j j } | j t j t j j } | j t j | j | j | | j | j | | j | j t j | j | j t j | j | j t j | j | j t j d S( sg The zsh_* variables you can place on Options classes are picked up correctly? t dummy_cmdt dummy_valueN( t FighterAceExtendedOptionsR t ArgumentsGeneratort FighterAceOptionst zsh_altArgDescrt copyt updatet zsh_actionDescrt assertEqualt altArgDescrt actionDescrt multiUset zsh_multiUset mutuallyExclusivet zsh_mutuallyExclusivet actionst zsh_actionst extrast zsh_extras( R t optst agR R! ( ( sD /usr/lib/python2.7/dist-packages/twisted/python/test/test_zshcomp.pyt test_accumulateMetadata% s c C sn t } t j d | d } | j d | j | j d | j | j d | j | j d | j d S( s We pick up options that are only defined by having an appropriately named method on your Options class, e.g. def opt_foo(self, foo) R R t nocrasht difficultyN( R R R t assertInt optFlags_dt optAll_dt optParams_d( R R* R+ ( ( sD /usr/lib/python2.7/dist-packages/twisted/python/test/test_zshcomp.pyt test_accumulateAdditionalOptions<