<s> import unittest <EOL> from collections import OrderedDict <EOL> from pprint import pprint <EOL> import hcpsdk <EOL> import init_tests as it <EOL> import logging <EOL> logging . basicConfig ( filename = '<STR_LIT>' , level = logging . DEBUG ) <EOL> class TestHcpsdk_30_1_NamespaceInfo_NS_GOOD ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . hcptarget = hcpsdk . Target ( it . P_NS_GOOD , it . P_AUTH , port = it . P_PORT , dnscache = it . P_DNSCACHE ) <EOL> self . nso = hcpsdk . namespace . Info ( self . hcptarget ) <EOL> def tearDown ( self ) : <EOL> del self . hcptarget <EOL> def test_1_10_good_NSstatistics ( self ) : <EOL> """<STR_LIT>""" <EOL> print ( '<STR_LIT>' ) <EOL> r = self . nso . nsstatistics ( ) <EOL> pprint ( r ) <EOL> self . assertTrue ( type ( r ) == dict ) <EOL> self . assertTrue ( len ( r ) == <NUM_LIT:9> ) <EOL> def test_1_20_good_listAccessibleNS ( self ) : <EOL> """<STR_LIT>""" <EOL> print ( '<STR_LIT>' ) <EOL> r = self . nso . listaccessiblens ( ) <EOL> pprint ( r ) <EOL> self . assertTrue ( type ( r ) == OrderedDict ) <EOL> for ns in r : <EOL> self . assertTrue ( type ( r [ ns ] ) == dict ) <EOL> def test_1_30_good_listThisNSonly ( self ) : <EOL> print ( '<STR_LIT>' ) <EOL> r = self . nso . listaccessiblens ( all = True ) <EOL> pprint ( r ) <EOL> self . assertTrue ( type ( r ) == OrderedDict ) <EOL> self . assertTrue ( len ( r ) == <NUM_LIT:1> ) <EOL> for ns in r : <EOL> self . assertTrue ( type ( r [ ns ] ) == dict ) <EOL> def test_1_40_good_listRetentionClasses ( self ) : <EOL> r = self . nso . listretentionclasses ( ) <EOL> pprint ( r ) <EOL> self . assertTrue ( type ( r ) == OrderedDict ) <EOL> for ns in r : <EOL> self . assertTrue ( type ( r [ ns ] ) == dict ) <EOL> def test_1_50_good_listPermissions ( self ) : <EOL> print ( '<STR_LIT>' ) <EOL> r = self . nso . listpermissions ( ) <EOL> pprint ( r ) <EOL> self . assertTrue ( type ( r ) == OrderedDict ) <EOL> for ns in r : <EOL> self . assertTrue ( type ( r [ ns ] ) == dict ) <EOL> for nsk in r . keys ( ) : <EOL> self . assertTrue ( nsk in [ '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ] ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
