<s> import unittest <EOL> from pprint import pprint <EOL> import hcpsdk <EOL> import init_tests as it <EOL> class LtVars ( object ) : <EOL> linkname = '<STR_LIT>' <EOL> class TestHcpsdk_40_1_Mapi_Replication ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . hcptarget = hcpsdk . Target ( it . P_ADMIN , it . P_ADMAUTH , <EOL> port = it . P_MAPIPORT , dnscache = it . P_DNSCACHE ) <EOL> self . mapi = hcpsdk . mapi . Replication ( self . hcptarget ) <EOL> def tearDown ( self ) : <EOL> del self . hcptarget <EOL> def test_1_10_good_getReplicationSettings ( self ) : <EOL> """<STR_LIT>""" <EOL> print ( '<STR_LIT>' ) <EOL> r = self . mapi . getreplicationsettings ( ) <EOL> pprint ( r ) <EOL> self . assertTrue ( type ( r ) == dict ) <EOL> self . assertTrue ( len ( r ) == <NUM_LIT:4> ) <EOL> def test_1_20_good_getLinkList ( self ) : <EOL> """<STR_LIT>""" <EOL> print ( '<STR_LIT>' ) <EOL> r = self . mapi . getlinklist ( ) <EOL> print ( r ) <EOL> self . assertTrue ( type ( r ) == list ) <EOL> self . assertTrue ( len ( r ) >= <NUM_LIT:1> ) <EOL> LtVars . linkname = r [ <NUM_LIT:0> ] <EOL> def test_1_30_good_getLinkDetails ( self ) : <EOL> """<STR_LIT>""" <EOL> print ( '<STR_LIT>' . format ( LtVars . linkname ) ) <EOL> r = self . mapi . getlinkdetails ( link = LtVars . linkname ) <EOL> pprint ( r ) <EOL> self . assertTrue ( True ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
