#NEWLINE# def test_calculate_pass_slot( self ) : #NEWLINE# #INDENT# 'UNIT test: services.common.simualtion.trigger_event\n        Validates the calculation of the pass slots that occur during an\n        availability slot.\n        ' #NEWLINE# if self . __verbose_testing : #NEWLINE# #INDENT# print ( '>>> test_calculate_pass_slot:' ) #NEWLINE# #UNINDENT# self . __simulator . set_groundstation ( self . __gs_1 ) #NEWLINE# self . __simulator . set_spacecraft ( tle_models . TwoLineElement . objects . get ( identifier = self . __sc_1_tle_id ) ) #NEWLINE# if self . __verbose_testing : #NEWLINE# #INDENT# print ( self . __simulator . __unicode__ ( ) ) #NEWLINE# #UNINDENT# pass_slots = self . __simulator . calculate_pass_slot ( start = pytz_utc . localize ( datetime . today ( ) ) , end = ( pytz_utc . localize ( datetime . today ( ) ) + timedelta ( days = 3 ) ) ) #NEWLINE# if self . __verbose_testing : #NEWLINE# #INDENT# print ( '# ### RESULTS:' ) #NEWLINE# for p in pass_slots : #NEWLINE# #INDENT# print ( ( ( ( ( '[' + str ( pass_slots [ 0 ] ) ) + ', ' ) + str ( p [ 1 ] ) ) + ']' ) )