コード例 #1
0
 def test_derive(self):
     afr_flight_id = A('AFR Flight ID', value=10245)
     flight_id = FlightID()
     flight_id.set_flight_attr = Mock()
     flight_id.derive(afr_flight_id)
     flight_id.set_flight_attr.assert_called_once_with(10245)
コード例 #2
0
 def test_can_operate(self):
     self.assertEqual(FlightID.get_operational_combinations(),
                      [('AFR Flight ID',)])