Ñò ñHc @ s¸ d Z d d k Z d d k Z d d k Z d d k l Z d d k l Z d d k l Z e i d ƒ Z e i d j Z d d d „ ƒ YZ d d d „ ƒ YZ d e f d „ ƒ YZ d S( s Attribute selector plugin. Simple syntax (-a, --attr) examples: * `nosetests -a status=stable`: Only test cases with attribute "status" having value "stable" * `nosetests -a priority=2,status=stable`: Both attributes must match * `nosetests -a priority=2 -a slow`: Either attribute must match * `nosetests -a tags=http`: Attribute list "tags" must contain value "http" (see test_foobar() below for definition) * `nosetests -a slow`: Attribute "slow" must be defined and its value cannot equal to False (False, [], "", etc...) * `nosetests -a '!slow'`: Attribute "slow" must NOT be defined or its value must be equal to False. Note the quotes around the value -- this may be necessary if your shell interprets `!' as a special character. Eval expression syntax (-A, --eval-attr) examples: * `nosetests -A "not slow"` * `nosetests -A "(priority > 5) and not slow"` iÿÿÿÿN( t isfunction( t Plugin( t tolists nose.plugins.attribi i t ContextHelperc B s e Z d Z d „ Z d „ Z RS( s. Returns default values for dictionary lookups.c C s | | _ d S( N( t obj( t selfR ( ( s7 /usr/lib/python2.6/site-packages/nose/plugins/attrib.pyt __init__. s c C s | i i | t ƒ S( N( R t gett False( R t name( ( s7 /usr/lib/python2.6/site-packages/nose/plugins/attrib.pyt __getitem__1 s ( t __name__t __module__t __doc__R R ( ( ( s7 /usr/lib/python2.6/site-packages/nose/plugins/attrib.pyR , s t AttributeGetterc B s, e Z d Z e ƒ Z d „ Z d d „ Z RS( s Helper for looking up attributes First we check the method, and if the attribute is not present, we check the method's class. c C s | | _ | | _ d S( N( t clst method( R R R ( ( s7 /usr/lib/python2.6/site-packages/nose/plugins/attrib.pyR = s c C s‡ t i d | | i | i ƒ | i i i | | i ƒ } | | i j o<