def test_calculate_groundtrack(self):
        if self.__verbose_testing:
            print('>>> test_calculate_groundtrack:')

        step = timedelta(minutes=1)
        interval = self.__simulator.get_simulation_window()

        groundtrack = self.__simulator.calculate_groundtrack(
            tle_models.TwoLineElement.objects.get(
                identifier=self.__sc_1_tle_id
            ),
            interval=interval, timestep=step
        )

        if self.__verbose_testing:
            for p in groundtrack:
                print(
                    '>> @' + str(p['timestamp']) + ', (' + str(
                        p['latitude']) + ',' + str(p['longitude']) + ')'
                )

        e_n_points = int(math.ceil(
            (interval[1] - interval[0]).total_seconds() / step.total_seconds()
        ))
        self.assertEqual(
            e_n_points, len(groundtrack),
            'Number of points differs! e = ' + str(
                e_n_points
            ) + ', a = ' + str(len(groundtrack))
        )
UNIT test: services.common.simualtion.calculate_groundtrack
dataset/ETHPy150Open satnet-project/server/services/common/tests/test_simulation.py/TestSimulation.test_calculate_groundtrack