/usr/lib/python2.6/site-packages/novaclient/tests/unit/v2
Edit: /usr/lib/python2.6/site-packages/novaclient/tests/unit/v2/test_security_groups.pyc (4116B)
Ñò
=vVc @ s] d d k l Z d d k l Z d d k l Z d d k l Z d e i f d „ ƒ YZ d S( iÿÿÿÿ( t client( t security_groups( t utilst SecurityGroupsTestc B sk e Z e i Z e i Z d „ Z d „ Z d „ Z
d „ Z d „ Z d „ Z
d „ Z d „ Z d „ Z RS( c C sP | i i i d | ƒ } | i d | ƒ x! | D] } | i | t i ƒ q/ Wd S( Nt search_optst GET( t csR t listt
assert_calledt assertIsInstancet
SecurityGroup( t selfR t patht sgst sg( ( sX /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_security_groups.pyt _do_test_list_security_groups s
c C s | i d d ƒ d S( Ns /os-security-groups( R t None( R ( ( sX /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_security_groups.pyt( test_list_security_groups_all_tenants_on s c C s | i h d d 6d ƒ d S( Ni t all_tenantss! /os-security-groups?all_tenants=1( R ( R ( ( sX /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_security_groups.pyt9 test_list_security_groups_all_tenants_on_with_search_opts# s c C s | i h d d 6d ƒ d S( Ni R s /os-security-groups( R ( R ( ( sX /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_security_groups.pyt) test_list_security_groups_all_tenants_off' s c C sR | i i i d ƒ } | i d d ƒ | i | t i ƒ | i d t | ƒ ƒ d S( Ni R s /os-security-groups/1t 1( R R t getR R R
t assertEqualt str( R R ( ( sX /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_security_groups.pyt test_get_security_groups+ s c C sz | i i i ƒ d } | i ƒ | i d d ƒ | i i i d ƒ | i d d ƒ | i i i | ƒ | i d d ƒ d S( Ni t DELETEs /os-security-groups/1i ( R R R t deleteR ( R R ( ( sX /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_security_groups.pyt test_delete_security_group1 s
c C s? | i i i d d ƒ } | i d d ƒ | i | t i ƒ d S( Nt foos foo barrt POSTs /os-security-groups( R R t createR R R
( R R ( ( sX /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_security_groups.pyt test_create_security_group: s c C sX | i i i ƒ d } | i i i | d d ƒ } | i d d ƒ | i | t i ƒ d S( Ni t updatet PUTs /os-security-groups/1( R R R R! R R R
( R R t secgroup( ( sX /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_security_groups.pyt test_update_security_group? s c C sƒ | i i i d ƒ } | i i i d ƒ } | i | i | i ƒ d | _ | i | i | i ƒ | i ƒ | i | i | i ƒ d S( Ni s should be test( R R R R t namet assertNotEqual( R R t sg2( ( sX /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_security_groups.pyt test_refresh_security_groupE s
( t __name__t
__module__R t V1t client_fixture_classt datat Fixturet data_fixture_classR R R R R R R R$ R( ( ( ( sX /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_security_groups.pyR s N( t" novaclient.tests.unit.fixture_dataR R R- t novaclient.tests.unitR t
novaclient.v2t FixturedTestCaseR ( ( ( sX /tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_security_groups.pyt
s