#NEWLINE# def test_passes_reboot( self ) : #NEWLINE# #INDENT# 'UNIT test: services.simulation.models - passes generation REBOOT\n        This test validates that subsequent attempts to generate passes do not\n        succeed in case that for the given update window, the passes had\n        already been generated.\n        ' #NEWLINE# logger . debug ( '#### FIRST PART OF THE TEST, CURRENT INTERVAL' ) #NEWLINE# pass_models . PassSlots . objects . propagate ( ) #NEWLINE# sc_passes_n_1 = pass_models . PassSlots . objects . filter ( spacecraft = self . __sc_1 ) . count ( ) #NEWLINE# pass_models . PassSlots . objects . propagate ( ) #NEWLINE# sc_passes_n_2 = pass_models . PassSlots . objects . filter ( spacecraft = self . __sc_1 ) . count ( ) #NEWLINE# self . assertEquals ( sc_passes_n_1 , sc_passes_n_2 ) #NEWLINE# logger . debug ( '#### SECOND PART OF THE TEST, FUTURE INTERVAL' ) #NEWLINE# interval = ( ( sn_misc . get_next_midnight ( ) + py_timedelta ( days = 30 ) ) , ( sn_misc . get_next_midnight ( ) + py_timedelta ( days = 33 ) ) ) #NEWLINE# pass_models . PassSlots . objects . propagate ( interval = interval ) #NEWLINE# sc_passes_n_3 = pass_models . PassSlots . objects . filter ( spacecraft = self . __sc_1 ) . count ( ) #NEWLINE# self . assertGreater ( sc_passes_n_3 , sc_passes_n_2 ) #NEWLINE# pass_models . PassSlots . objects . propagate ( interval = interval ) #NEWLINE# sc_passes_n_4 = pass_models . PassSlots . objects . filter ( spacecraft = self . __sc_1 ) . count ( ) #NEWLINE# self . assertEquals ( sc_passes_n_4 , sc_passes_n_3 )