Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Num FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str ListComp ListLoad Call AttributeLoad Str attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str ListLoad Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str ListComp ListLoad Call AttributeLoad Str attr NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str ListLoad Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str ListComp ListLoad Call AttributeLoad Str attr NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str ListLoad Str Str Str Str Str Str ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str Str Str Str Str ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Str Str Str Str ListLoad NameLoad Num Num ListLoad NameLoad Num Num ListLoad NameLoad Num NameLoad Num ListLoad NameLoad Num Num ListLoad NameLoad Str Str Str Str Str ListLoad NameLoad Num Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str ListLoad ListLoad Dict Str Num NameLoad ListLoad Dict Str Num NameLoad ListLoad Dict Str Num NameLoad ListLoad Dict Str Num NameLoad ListLoad Dict Str Num NameLoad ListLoad Dict Str Num NameLoad ListLoad Dict Str Num NameLoad ListLoad Dict Str Num NameLoad ListLoad Dict Str Str NameLoad ListLoad Dict Str Str NameLoad ListLoad Dict Str Str NameLoad ListLoad Dict Str Str NameLoad ListLoad Dict Str Str NameLoad ListLoad Dict Str Str NameLoad ListLoad Dict Str Num NameLoad ListLoad Dict Str Num NameLoad decorator_list
N/A N/A 
@author: Tsuyoshi Hombashi
 __future__ absolute_import N/A itertools N/A pytest N/A thutils N/A tcconfig N/A tcconfig.traffic_control N/A MIN_PACKET_LOSS 2.32e-08 tc_obj N/A N/A N/A N/A N/A subproc_wrapper N/A N/A N/A thutils subprocwrapper SubprocessWrapper N/A N/A N/A N/A tcconfig traffic_control TrafficControl subproc_wrapper eth0 N/A N/A pytest fixture test_TrafficControl_validate_bandwidth_rate_normal N/A N/A tc_obj value N/A N/A N/A N/A tc_obj bandwidth_rate value N/A N/A N/A tc_obj _TrafficControl__validate_bandwidth_rate N/A N/A N/A N/A pytest mark parametrize N/A value N/A N/A N/A N/A join opt_list N/A opt_list N/A N/A itertools product N/A 0.1 1 2147483647 N/A k  k K  K m  m M  M g  g G  G test_TrafficControl_validate_bandwidth_rate_exception_1 N/A N/A tc_obj value expected N/A N/A N/A N/A tc_obj bandwidth_rate value N/A N/A N/A pytest raises expected N/A N/A N/A N/A tc_obj _TrafficControl__validate_bandwidth_rate N/A N/A N/A N/A pytest mark parametrize N/A value expected N/A N/A N/A N/A join opt_list ValueError N/A opt_list N/A N/A itertools product N/A 0.1 1 2147483647 N/A kb kbps KB mb mbps MB gb gbps GB test_TrafficControl_validate_bandwidth_rate_exception_2 N/A N/A tc_obj value expected N/A N/A N/A N/A tc_obj bandwidth_rate value N/A N/A N/A pytest raises expected N/A N/A N/A N/A tc_obj _TrafficControl__validate_bandwidth_rate N/A N/A N/A N/A pytest mark parametrize N/A value expected N/A N/A N/A N/A join opt_list ValueError N/A opt_list N/A N/A itertools product N/A -1 0 0.0 N/A k K m M g G Test_TrafficControl_validate N/A N/A test_normal N/A N/A self tc_obj rate delay delay_distro loss corrupt network port N/A N/A N/A N/A tc_obj bandwidth_rate rate N/A N/A tc_obj latency_ms delay N/A N/A tc_obj latency_distro_ms delay_distro N/A N/A tc_obj packet_loss_rate loss N/A N/A tc_obj corruption_rate corrupt N/A N/A tc_obj network network N/A N/A tc_obj port port N/A N/A N/A tc_obj validate N/A N/A N/A N/A pytest mark parametrize N/A rate delay delay_distro loss corrupt network port N/A opt_list N/A opt_list N/A N/A itertools product N/A None 100K 0.5M 0.1G N/A None 0 10000 N/A None 0 10000 N/A None 0 MIN_PACKET_LOSS 99 N/A None 0 99 N/A None 192.168.0.1 192.168.0.254 192.168.0.1/32 192.168.0.0/24 N/A None 0 65535 test_exception N/A N/A self tc_obj value expected N/A N/A N/A N/A tc_obj bandwidth_rate N/A N/A value get bandwidth_rate N/A N/A tc_obj latency_ms N/A N/A value get latency_ms N/A N/A tc_obj latency_distro_ms N/A N/A value get latency_distro_ms N/A N/A tc_obj packet_loss_rate N/A N/A value get packet_loss_rate N/A N/A tc_obj curruption_rate N/A N/A value get curruption_rate N/A N/A tc_obj network N/A N/A value get network N/A N/A tc_obj port N/A N/A value get port N/A N/A N/A pytest raises expected N/A N/A N/A N/A tc_obj validate N/A N/A N/A N/A pytest mark parametrize N/A value expected N/A N/A N/A latency_ms -1 ValueError N/A N/A latency_ms 10001 ValueError N/A N/A latency_distro_ms -1 ValueError N/A N/A latency_distro_ms 10001 ValueError N/A N/A packet_loss_rate -0.1 ValueError N/A N/A packet_loss_rate 99.1 ValueError N/A N/A curruption_rate -0.1 ValueError N/A N/A curruption_rate 99.1 ValueError N/A N/A network 192.168.0. ValueError N/A N/A network 192.168.0.256 ValueError N/A N/A network 192.168.0.0/0 ValueError N/A N/A network 192.168.0.0/33 ValueError N/A N/A network 192.168.0.2/24 ValueError N/A N/A network 192.168.0.0000/24 ValueError N/A N/A port -1 ValueError N/A N/A port 65536 ValueError N/A