/usr/lib/python2.6/site-packages/keystoneauth1/tests/unit
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/test_token_endpoint.pyc (3020B)
Ńň
DVc @ s d d k l Z 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 e i
f d YZ d
S( i˙˙˙˙( t matchers( t admin_token( t session( t utils( t token_endpointt TokenEndpointTestc B s/ e Z d Z d Z d Z d Z d Z RS( t aTokens http://server/prefixc C s
| i i | i d d t i | i | i } t i d | } | i | i d t } | i | i
d | i d | i d S( Nt textt bodyt autht
authenticateds X-Auth-Token( t
requests_mockt gett TEST_URLR t Tokent
TEST_TOKENR t Sessiont Truet assertEqualR t assertRequestHeaderEqual( t selft at st data( ( sS /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/test_token_endpoint.pyt test_basic_case s c C sŤ | i d d g d d t i | i | i } t i d | } | i d d t d h d d
6} | i | i | i
| | i d | i | i d | i d S( Nt GETt pR R R s /pR
t endpoint_filtert identityt services X-Auth-Token(
t stub_urlR R R
R R R R R R t get_endpointR R ( R R R R ( ( sS /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/test_token_endpoint.pyt test_basic_endpoint_case% s c C sT t i | i | i } t i } | i | i | | i | i | d S( N( R R R
R R R t assertIsNonet get_user_idt get_project_id( R R R ( ( sS /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/test_token_endpoint.pyt test_token_endpoint_user_id2 s ( t __name__t
__module__R R
R R R$ ( ( ( sS /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/test_token_endpoint.pyR s
t AdminTokenTestc B s e Z d Z RS( c C sm g } t i i D] } | | i q ~ } | i | t i d | i d | | i d | d S( Ni t tokent endpoint( t loadert
AdminTokent get_optionst namet
assertThatR t HasLengtht assertIn( R t _[1]t optt opt_names( ( sS /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/test_token_endpoint.pyt test_token_endpoint_options= s 0( R% R&