def test_port_unsupported_status(self):
        port_context = self._create_port_context_normal()
        port = port_context._port
        unsupported_states = [n_const.PORT_STATUS_BUILD,
                              n_const.PORT_STATUS_DOWN,
                              n_const.PORT_STATUS_ERROR,
                              n_const.PORT_STATUS_NOTAPPLICABLE]
        for state in unsupported_states:
            port['status'] = state
            self.assertFalse(self.mech_driver._is_status_active(port))
Verifies detection of unsupported status values for ports.
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/ml2/drivers/cisco/ucsm/test_cisco_ucsm_driver.py/TestCiscoUcsmMechDriver.test_port_unsupported_status