#NEWLINE# def test_get_configuration( self ) : #NEWLINE# #INDENT# 'JRPC test: services.leop.getConfiguration\n        Validation of the JRPC method that permits obtaining the\n        configuration for a given LEOP cluster.\n        ' #NEWLINE# self . assertRaises ( launch_models . Launch . DoesNotExist , launch_jrpc . get_configuration , '' ) #NEWLINE# a_cfg = launch_jrpc . get_configuration ( self . __leop_id ) #NEWLINE# e_cfg = { #NEWLINE# #INDENT# launch_serial . JRPC_K_LEOP_ID : str ( e_cfg . __leop_id ) , #NEWLINE# launch_serial . JRPC_K_SC_ID : str ( self . __leop_sc_id ) , #NEWLINE# launch_serial . JRPC_K_DATE : self . __leop_serial_date , #NEWLINE# launch_serial . JRPC_K_TLE_L1 : self . __leop_tle_l1 , #NEWLINE# launch_serial . JRPC_K_TLE_L2 : self . __leop_tle_l2 , #NEWLINE# launch_serial . JRPC_K_UNKNOWN_OBJECTS : [ ] , #NEWLINE# launch_serial . JRPC_K_IDENTIFIED_OBJECTS : [ ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( a_cfg , e_cfg ) #NEWLINE# launch_jrpc . add_unknown ( self . __leop_id , 1 ) #NEWLINE# a_cfg = launch_jrpc . get_configuration ( self . __leop_id ) #NEWLINE# e_cfg = { #NEWLINE# #INDENT# launch_serial . JRPC_K_LEOP_ID : str ( self . __leop_id ) , #NEWLINE# launch_serial . JRPC_K_SC_ID : str ( self . __leop_sc_id ) , #NEWLINE# launch_serial . JRPC_K_DATE : self . __leop_serial_date , #NEWLINE# launch_serial . JRPC_K_TLE_L1 : self . __leop_tle_l1 , #NEWLINE# launch_serial . JRPC_K_TLE_L2 : self . __leop_tle_l2 , #NEWLINE# launch_serial . JRPC_K_UNKNOWN_OBJECTS : [ { #NEWLINE# #INDENT# launch_serial . JRPC_K_OBJECT_ID : '1' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# launch_serial . JRPC_K_IDENTIFIED_OBJECTS : [ ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( a_cfg , e_cfg ) #NEWLINE# launch_jrpc . add_unknown ( self . __leop_id , 2 ) #NEWLINE# launch_jrpc . identify ( self . __leop_id , self . __ufo_id , self . __ufo_callsign , self . __ufo_tle_l1 , self . __ufo_tle_l2 ) #NEWLINE# a_cfg = launch_jrpc . get_configuration ( self . __leop_id ) #NEWLINE# e_cfg = { #NEWLINE# #INDENT# launch_serial . JRPC_K_LEOP_ID : str ( self . __leop_id ) , #NEWLINE# launch_serial . JRPC_K_SC_ID : str ( self . __leop_sc_id ) , #NEWLINE# launch_serial . JRPC_K_DATE : self . __leop_serial_date , #NEWLINE# launch_serial . JRPC_K_TLE_L1 : self . __leop_tle_l1 , #NEWLINE# launch_serial . JRPC_K_TLE_L2 : self . __leop_tle_l2 , #NEWLINE# launch_serial . JRPC_K_UNKNOWN_OBJECTS : [ { #NEWLINE# #INDENT# launch_serial . JRPC_K_OBJECT_ID : '2' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# launch_serial . JRPC_K_IDENTIFIED_OBJECTS : [ { #NEWLINE# #INDENT# launch_serial . JRPC_K_OBJECT_ID : '1' , #NEWLINE# launch_serial . JRPC_K_SC_ID : str ( self . __ufo_sc_id ) , #NEWLINE# launch_serial . JRPC_K_CALLSIGN : str ( self . __ufo_callsign ) , #NEWLINE# launch_serial . JRPC_K_TLE_L1 : self . __leop_tle_l1 , #NEWLINE# launch_serial . JRPC_K_TLE_L2 : self . __leop_tle_l2 , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( a_cfg , e_cfg ) #NEWLINE# launch_jrpc . forget ( self . __leop_id , self . __ufo_id ) #NEWLINE# a_cfg = launch_jrpc . get_configuration ( self . __leop_id ) #NEWLINE# e_cfg = { #NEWLINE# #INDENT# launch_serial . JRPC_K_LEOP_ID : str ( self . __leop_id ) , #NEWLINE# launch_serial . JRPC_K_SC_ID : str ( self . __leop_sc_id ) , #NEWLINE# launch_serial . JRPC_K_DATE : self . __leop_serial_date , #NEWLINE# launch_serial . JRPC_K_TLE_L1 : self . __leop_tle_l1 , #NEWLINE# launch_serial . JRPC_K_TLE_L2 : self . __leop_tle_l2 , #NEWLINE# launch_serial . JRPC_K_UNKNOWN_OBJECTS : [ { #NEWLINE# #INDENT# launch_serial . JRPC_K_OBJECT_ID : '2' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# launch_serial . JRPC_K_OBJECT_ID : '1' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# launch_serial . JRPC_K_IDENTIFIED_OBJECTS : [ ] , #NEWLINE# #UNINDENT# } #NEWLINE# if self . __verbose_testing : #NEWLINE# #INDENT# misc . print_dictionary ( a_cfg ) #NEWLINE# misc . print_dictionary ( e_cfg ) #NEWLINE# #UNINDENT# self . assertEqual ( a_cfg , e_cfg )