@@ -0,0 +1,984 @@
+# coding=utf-8%0A%0Afrom app.missions.mission import is_mission_feasible%0Aimport unittest%0A%0Afrom app.planes.SupersonicTUPlane import SupersonicTUPlane%0A%0A%0Aclass TestMission(object):%0A    def __init__(self, **kwargs):%0A        self.km_nb = kwargs%5B'km_nb'%5D%0A        self.travellers_nb = kwargs%5B'travellers_nb'%5D%0A        self.pilots_nb = kwargs%5B'pilots_nb'%5D%0A        self.flight_attendants_nb = kwargs%5B'flight_attendants_nb'%5D%0A%0A%0Aclass TestParser(unittest.TestCase):%0A%0A    def test_parser(self):%0A        mission = TestMission(km_nb=4000, travellers_nb=0, pilots_nb=0, flight_attendants_nb=0)%0A        plane = SupersonicTUPlane(plane_id=0, ready=True)%0A        self.assertTrue(is_mission_feasible(mission, plane))%0A%0A    def test_parser(self):%0A        mission = TestMission(km_nb=5000, travellers_nb=0, pilots_nb=0, flight_attendants_nb=0)%0A        plane = SupersonicTUPlane(plane_id=0, ready=True)%0A        self.assertFalse(is_mission_feasible(mission, plane))%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

test mission feasible