def test_pass_models(self):

        # 1) pass slots creation
        sc_slots_1 = pass_models.PassSlots.objects.create_pass_slots_sc(
            self.__sc_1
        )
        self.assertIsNot(
            len(sc_slots_1), 0,
            'Spacecraft pass slots should have been created'
        )
        gs_slots_1 = pass_models.PassSlots.objects.create_pass_slots_gs(
            self.__gs_1
        )
        self.assertIsNot(
            len(gs_slots_1), 0,
            'Groundstation pass slots should have been created'
        )
        self.assertTrue(
            pass_models.PassSlots.objects.filter(
                spacecraft=self.__sc_1
            ).exists(),
            'Spacecraft associated pass slots should have been created'
        )
        self.assertTrue(
            pass_models.PassSlots.objects.filter(
                groundstation=self.__gs_1
            ).exists(),
            'GroundStation associated pass slots should have been created'
        )

        # 2) pass slots removal
        pass_models.PassSlots.objects.remove_pass_slots_sc(self.__sc_1)
        self.assertFalse(
            pass_models.PassSlots.objects.filter(
                spacecraft=self.__sc_1
            ).exists(),
            'Spacecraft associated pass slots should have been removed'
        )
        pass_models.PassSlots.objects.remove_pass_slots_gs(self.__gs_1)
        self.assertFalse(
            pass_models.PassSlots.objects.filter(
                groundstation=self.__gs_1
            ).exists(),
            'GroundStation associated pass slots should have been removed'
        )
Returns a compiled Template object for the given template code,
dataset/ETHPy150Open satnet-project/server/services/simulation/tests/models/test_passes.py/TestModels.test_pass_models--crossover with--dataset/ETHPy150Open django/django/django/template/engine.py/Engine.from_string