'Basic test that ports without fixed ips are filtered out'

def test__each_port_having_fixed_ips(self):

    ports = [{'id': 'a', 'fixed_ips': [mock.sentinel.fixedip]}, {'id': 'b'}]
    filtered = l3_db.L3_NAT_dbonly_mixin._each_port_having_fixed_ips(ports)
    ids = [p['id'] for p in filtered]
    self.assertEqual(['a'], ids)
