def test_get_waypoint(self): lscsc_line = 'LSCSCS:AP4 Fronhofen Strassen-T:N4942358:E00851490' task_info, competitor_information = get_task_and_competitor_info(self.lscsd_lines, self.lscsr_lines) waypoint = get_waypoint(lscsc_line, task_info, n=0, n_tp=7) self.assertEqual(waypoint.name, 'AP4 Fronhofen Strassen-T') self.assertTrue(waypoint.is_line)
def test_get_waypoints(self): task_info, competitor_information = get_task_and_competitor_info( self.lscsd_lines, self.lscsr_lines, []) waypoints = get_waypoints(self.lscsc_lines, task_info) self.assertEqual(len(waypoints), 7)