def test_ipaddr_filter_by_network_role(self):
        public_net_vip_names = ('vrouter_pub', 'public')

        resp = self.app.get(
            reverse(
                self.handler_name,
                kwargs={
                    'cluster_id': self.cluster['id']
                }
            ),
            params={'network_role': 'public/vip'},
            headers=self.default_headers
        )

        expected_vips = [vip for vip in self.expected_vips
                         if vip['vip_name'] in public_net_vip_names]
        self.assertItemsEqual(
            expected_vips,
            self._remove_from_response(
                resp.json_body,
                ['id', 'network']
            )
        )
        self.assertEqual(200, resp.status_code)
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_ip_addrs_management.py/TestIPAddrList.test_ipaddr_filter_by_network_role/original