def test_get_passes(self):
        self.assertEqual(
            launch_jrpc.get_pass_slots(self.__leop_id),
            [],
            'No passes should have been inserted yet'
        )

        self.assertEqual(
            launch_jrpc.add_groundstations(
                self.__leop_id, [self.__gs_1_id],
                **{'request': self.__request_2}
            ),
            {launch_serial.JRPC_K_LEOP_ID: self.__leop_id},
            'Should have returned launch identifier'
        )

        # 1 ufo gets identified, generates pass slots...
        launch_jrpc.add_unknown(self.__leop_id, self.__ufo_id)
        launch_jrpc.identify(
            self.__leop_id, self.__ufo_id, self.__ufo_callsign,
            self.__ufo_tle_l1, self.__ufo_tle_l2
        )

        slots = launch_jrpc.get_pass_slots(self.__leop_id)
        self.assertNotEqual(
            len(slots), 0, 'Pass slots should have been created'
        )
JRPC test: services.leop.getPasses
dataset/ETHPy150Open satnet-project/server/services/leop/tests/test_jrpc.py/TestLaunchViews.test_get_passes