def test_update_ufo(self):
        self.assertRaises(
            Exception, launch_jrpc.update, None, None, None, None, None
        )
        self.assertRaises(
            Exception,
            launch_jrpc.update,
            self.__leop_id, None, None, None, None
        )
        self.assertRaises(
            Exception,
            launch_jrpc.update,
            self.__leop_id, self.__ufo_id, None, None, None
        )

        self.assertEqual(
            launch_jrpc.add_unknown(self.__leop_id, self.__ufo_id),
            self.__ufo_id,
            'Should return the same id'
        )
        self.assertRaises(
            Exception,
            launch_jrpc.update,
            self.__leop_id, self.__ufo_id, None, None, None
        )

        self.assertEqual(
            launch_jrpc.identify(
                self.__leop_id, self.__ufo_id,
                self.__ufo_callsign, self.__ufo_tle_l1, self.__ufo_tle_l2
            ),
            {
                launch_serial.JRPC_K_OBJECT_ID: self.__ufo_id,
                launch_serial.JRPC_K_SC_ID: self.__ufo_sc_id
            },
            'Should have returned the id of the UFO and the SC id'
        )
        self.assertEqual(
            launch_jrpc.update(self.__leop_id, self.__ufo_id, None, None, None),
            {
                launch_serial.JRPC_K_OBJECT_ID: self.__ufo_id,
                launch_serial.JRPC_K_SC_ID: self.__ufo_sc_id
            },
            'Should have returned the id of the UFO and the SC id'
        )
        self.assertEqual(
            launch_jrpc.update(
                self.__leop_id, self.__ufo_id,
                self.__ufo_callsign, self.__ufo_tle_l1, self.__ufo_tle_l2
            ),
            {
                launch_serial.JRPC_K_OBJECT_ID: self.__ufo_id,
                launch_serial.JRPC_K_SC_ID: self.__ufo_sc_id
            },
            'Should have returned the id of the UFO and the SC id'
        )
        self.assertEqual(
            launch_jrpc.update(
                self.__leop_id, self.__ufo_id,
                self.__ufo_callsign, self.__leop_2_tle_l1, self.__leop_2_tle_l2
            ),
            {
                launch_serial.JRPC_K_OBJECT_ID: self.__ufo_id,
                launch_serial.JRPC_K_SC_ID: self.__ufo_sc_id
            },
            'Should have returned the id of the UFO and the SC id'
        )
Return the resource corresponding to all the repos.
dataset/ETHPy150Open satnet-project/server/services/leop/tests/test_jrpc.py/TestLaunchViews.test_update_ufo--crossover with--dataset/ETHPy150Open ducksboard/libsaas/libsaas/services/github/service.py/GitHub.repos