#NEWLINE# def test_create_passes( self ) : #NEWLINE# #INDENT# 'UNIT test: services.simulation.models.passes\n        This test validates the creation of an availability slot and the\n        further automatic rejections for the creation of availability slots\n        that match the start and end of this one.\n        ' #NEWLINE# slot_s = sn_misc . get_next_midnight ( ) #NEWLINE# slot_e = ( slot_s + py_timedelta ( days = 1 ) ) #NEWLINE# self . assertIsNotNone ( pass_models . PassSlots . objects . create ( spacecraft = self . __sc_1 , groundstation = self . __gs_1 , start = slot_s , end = self ) ) #NEWLINE# self . assertIsNone ( pass_models . PassSlots . objects . create ( spacecraft = self . __sc_1 , groundstation = self . __gs_1 , start = slot_s , end = slot_e ) ) #NEWLINE# slot_s = ( slot_s + py_timedelta ( days = 1 ) ) #NEWLINE# slot_e = ( slot_s + py_timedelta ( days = 1 ) ) #NEWLINE# self . assertIsNotNone ( pass_models . PassSlots . objects . create ( spacecraft = self . __sc_1 , groundstation = self . __gs_1 , start = slot_s , end = slot_e ) ) #NEWLINE# self . assertIsNone ( pass_models . PassSlots . objects . create ( spacecraft = self . __sc_1 , groundstation = self . __gs_1 , start = slot_s , end = slot_e ) )