def test_is_port_inactive(self): port = fake.get_port_obj(port_id=str(uuid.uuid4())) self.assertFalse(ovu._is_port_active(port))
def test_is_port_inactive(self): port = {'status': 'DOWN'} self.assertFalse(ovu._is_port_active(port))
def test_is_port_active(self): port = fake.get_port_obj(port_id=str(uuid.uuid4())) port.status = 'ACTIVE' self.assertTrue(ovu._is_port_active(port))
def test_is_port_active(self): port = {'status': 'ACTIVE'} self.assertTrue(ovu._is_port_active(port))