/usr/lib/python2.6/site-packages/openstackclient/tests/compute/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/tests/compute/v2/test_hypervisor_stats.pyc (2612B)
Ñò
ŝWc @ sS d d k l Z d d k l Z d e i f d YZ d e f d YZ d S( i˙˙˙˙( t hypervisor_stats( t fakest TestHypervisorStatsc B s e Z d Z RS( c C s9 t t | i | i i i i | _ | i i d S( N( t superR t setUpt appt client_managert computet hypervisorst hypervisors_mockt
reset_mock( t self( ( sf /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_hypervisor_stats.pyR s ( t __name__t
__module__R ( ( ( sf /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_hypervisor_stats.pyR s t TestHypervisorStatsShowc B s e Z d Z d Z RS( c C se t t | i t i i | _ | i | i i _ t i
| i d | _
d | _ d | _ d S( Nt countt current_workloadt disk_available_leastt free_disk_gbt free_ram_mbt local_gbt
local_gb_usedt memory_mbt memory_mb_usedt running_vmst vcpust
vcpus_usedi i i2 id iĜY iĝ\ ix i i ( s countR R R R R R R R R R R ( i i i2 id iĜY id i iĝ\ ix i i i ( R R R t
compute_fakest FakeHypervisorStatst create_one_hypervisor_statsR R t
statisticst return_valuet ShowHypervisorStatsR t Nonet cmdt columnst data( R ( ( sf /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_hypervisor_stats.pyR s8 c C sf g } g } | i | i | | } | i i | \ } } | i | i | | i | i | d S( N( t check_parserR" t take_actiont assertEqualR# R$ ( R t arglistt
verifylistt parsed_argsR# R$ ( ( sf /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_hypervisor_stats.pyt test_hypervisor_show_statsI s ( R R
R R+ ( ( ( sf /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_hypervisor_stats.pyR s )N( t openstackclient.compute.v2R t openstackclient.tests.compute.v2R R t
TestComputev2R R ( ( ( sf /tmp/pip-build-iUCeBS/python-openstackclient/openstackclient/tests/compute/v2/test_hypervisor_stats.pyt
s