def test_get_configuration(self):
        self.assertRaises(
            launch_models.Launch.DoesNotExist, launch_jrpc.get_configuration, ''
        )

        # 1) No ufos
        a_cfg = launch_jrpc.get_configuration(self.__leop_id)
        e_cfg = {
            launch_serial.JRPC_K_LEOP_ID: str(self.__leop_id),
            launch_serial.JRPC_K_SC_ID: str(self.__leop_sc_id),
            launch_serial.JRPC_K_DATE: self.__leop_serial_date,
            launch_serial.JRPC_K_TLE_L1: self.__leop_tle_l1,
            launch_serial.JRPC_K_TLE_L2: self.__leop_tle_l2,
            launch_serial.JRPC_K_UNKNOWN_OBJECTS: [],
            launch_serial.JRPC_K_IDENTIFIED_OBJECTS: []
        }
        self.assertEqual(a_cfg, e_cfg)

        # 2) 1 ufo
        launch_jrpc.add_unknown(self.__leop_id, 1)
        a_cfg = launch_jrpc.get_configuration(self.__leop_id)
        e_cfg = {
            launch_serial.JRPC_K_LEOP_ID: str(self.__leop_id),
            launch_serial.JRPC_K_SC_ID: str(self.__leop_sc_id),
            launch_serial.JRPC_K_DATE: self.__leop_serial_date,
            launch_serial.JRPC_K_TLE_L1: self.__leop_tle_l1,
            launch_serial.JRPC_K_TLE_L2: self.__leop_tle_l2,
            launch_serial.JRPC_K_UNKNOWN_OBJECTS: [
                {launch_serial.JRPC_K_OBJECT_ID: '1'}
            ],
            launch_serial.JRPC_K_IDENTIFIED_OBJECTS: []
        }
        self.assertEqual(a_cfg, e_cfg)

        # 3) 1 ufo, 1 identified
        launch_jrpc.add_unknown(self.__leop_id, 2)
        launch_jrpc.identify(
            self.__leop_id, self.__ufo_id, self.__ufo_callsign,
            self.__ufo_tle_l1, self.__ufo_tle_l2
        )

        a_cfg = launch_jrpc.get_configuration(self.__leop_id)
        e_cfg = {
            launch_serial.JRPC_K_LEOP_ID: str(self.__leop_id),
            launch_serial.JRPC_K_SC_ID: str(self.__leop_sc_id),
            launch_serial.JRPC_K_DATE: self.__leop_serial_date,
            launch_serial.JRPC_K_TLE_L1: self.__leop_tle_l1,
            launch_serial.JRPC_K_TLE_L2: self.__leop_tle_l2,
            launch_serial.JRPC_K_UNKNOWN_OBJECTS: [
                {launch_serial.JRPC_K_OBJECT_ID: '2'}
            ],
            launch_serial.JRPC_K_IDENTIFIED_OBJECTS: [{
                launch_serial.JRPC_K_OBJECT_ID: '1',
                launch_serial.JRPC_K_SC_ID: str(self.__ufo_sc_id),
                launch_serial.JRPC_K_CALLSIGN: str(self.__ufo_callsign),
                launch_serial.JRPC_K_TLE_L1: self.__leop_tle_l1,
                launch_serial.JRPC_K_TLE_L2: self.__leop_tle_l2,
            }]
        }
        self.assertEqual(a_cfg, e_cfg)

        # 4) 2 ufos
        launch_jrpc.forget(self.__leop_id, self.__ufo_id)
        a_cfg = launch_jrpc.get_configuration(self.__leop_id)
        e_cfg = {
            launch_serial.JRPC_K_LEOP_ID: str(self.__leop_id),
            launch_serial.JRPC_K_SC_ID: str(self.__leop_sc_id),
            launch_serial.JRPC_K_DATE: self.__leop_serial_date,
            launch_serial.JRPC_K_TLE_L1: self.__leop_tle_l1,
            launch_serial.JRPC_K_TLE_L2: self.__leop_tle_l2,
            launch_serial.JRPC_K_UNKNOWN_OBJECTS: [
                {launch_serial.JRPC_K_OBJECT_ID: '2'},
                {launch_serial.JRPC_K_OBJECT_ID: '1'}
            ],
            launch_serial.JRPC_K_IDENTIFIED_OBJECTS: []
        }

        if self.__verbose_testing:
            misc.print_dictionary(a_cfg)
            misc.print_dictionary(e_cfg)

        self.assertEqual(a_cfg, e_cfg)
Initialize a rectangle instance.
dataset/ETHPy150Open satnet-project/server/services/leop/tests/test_jrpc.py/TestLaunchViews.test_get_configuration--crossover with--dataset/ETHPy150Open bolme/pyvision/src/pyvision/types/Rect.py/Rect.__init__