Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign NameStore ListLoad Str For NameStore Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign NameStore Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr decorator_list
N/A N/A Functional test class for nsxv.py N/A unittest N/A copy optparse OptionParser xml.etree ElementTree ET lib naming lib policy lib nsxv N/A nsxv_mocktest NsxvFunctionalTest N/A N/A unittest TestCase N/A N/A 
  Reads the policy and the output has the xml formed correctly with the tags and values
   setUp N/A N/A self N/A N/A N/A Call before every test case
     N/A _parser N/A OptionParser N/A N/A N/A _parser add_option -d --def dest definitions help definitions directory default ../def N/A N/A FLAGS args N/A N/A _parser parse_args N/A N/A self defs N/A N/A naming Naming N/A FLAGS definitions N/A tearDown N/A N/A self N/A N/A N/A N/A runTest N/A N/A self N/A N/A N/A N/A test_nsxv_policy N/A N/A self N/A N/A N/A pol N/A N/A policy ParsePolicy N/A nsxv_mocktest POLICY N/A self defs N/A exp_info 2 N/A nsx N/A N/A copy deepcopy pol N/A fw N/A N/A nsxv Nsxv nsx exp_info N/A output N/A str fw N/A root N/A N/A ET fromstring output N/A section_name N/A id name 1007 Sample NSXV filter N/A N/A N/A self assertEqual N/A root attrib section_name N/A N/A N/A self assertEqual N/A N/A N/A root find ./rule/name text reject-imap-requests N/A N/A N/A self assertEqual N/A N/A N/A root find ./rule/action text reject N/A exp_destaddr N/A 200.1.1.4/31 N/A destination N/A N/A root findall ./rule/destinations/destination N/A N/A N/A N/A self assertEqual N/A N/A N/A destination find type text Ipv4Address N/A value N/A N/A N/A destination find value text N/A N/A value exp_destaddr N/A N/A N/A N/A self fail IPv4Address destination not found in test_nsxv_str() N/A protocol N/A int N/A N/A N/A root find ./rule/services/service/protocol text N/A N/A N/A self assertEqual protocol 6 N/A destination_port N/A N/A N/A root find ./rule/services/service/destinationPort text N/A N/A N/A self assertEqual destination_port 143 N/A test_nsxv_nosectiondid N/A N/A self N/A N/A N/A pol N/A N/A policy ParsePolicy N/A nsxv_mocktest POLICY_NO_SECTION_ID N/A self defs N/A exp_info 2 N/A nsx N/A N/A copy deepcopy pol N/A fw N/A N/A nsxv Nsxv nsx exp_info N/A output N/A str fw N/A root N/A N/A ET fromstring output N/A section_name N/A name NSXV filter without section id N/A N/A N/A self assertEqual N/A root attrib section_name N/A N/A N/A self assertEqual N/A N/A N/A root find ./rule/name text accept-icmp N/A N/A N/A self assertEqual N/A N/A N/A root find ./rule/action text allow N/A protocol N/A int N/A N/A N/A root find ./rule/services/service/protocol text N/A N/A N/A self assertEqual protocol 1 N/A test_nsxv_nofiltertype N/A N/A self N/A N/A test_nofiltertype N/A N/A N/A N/A N/A pol N/A N/A policy ParsePolicy N/A nsxv_mocktest POLICY_NO_FILTERTYPE N/A self defs N/A exp_info 2 N/A nsx N/A N/A copy deepcopy pol N/A fw N/A N/A nsxv Nsxv nsx exp_info N/A N/A N/A N/A self assertRaises N/A nsxv UnsupportedNsxvAccessListError test_nofiltertype N/A test_nsxv_incorrectfiltertype N/A N/A self N/A N/A test_incorrectfiltertype N/A N/A N/A N/A N/A pol N/A N/A policy ParsePolicy N/A nsxv_mocktest POLICY_INCORRECT_FILTERTYPE N/A self defs N/A exp_info 2 N/A nsx N/A N/A copy deepcopy pol N/A fw N/A N/A nsxv Nsxv nsx exp_info N/A N/A N/A N/A self assertRaises N/A nsxv UnsupportedNsxvAccessListError test_incorrectfiltertype N/A test_nsxv_optionkywd N/A N/A self N/A N/A test_optionkywd N/A N/A N/A N/A N/A pol N/A N/A policy ParsePolicy N/A nsxv_mocktest POLICY_OPTION_KYWD N/A self defs N/A exp_info 2 N/A nsx N/A N/A copy deepcopy pol N/A fw N/A N/A nsxv Nsxv nsx exp_info N/A output N/A str fw N/A N/A N/A N/A self assertRaises N/A nsxv NsxvAclTermError test_optionkywd N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main N/A