def test_blacklist_ips_single(self):
        # add by hit object, should
        qs = Hit.objects.filter(ip="127.0.0.5")
        self.admin.blacklist_ips(self.request, qs)
        ip = BlacklistIP.objects.get(pk=1)
        self.assertEqual(ip.ip, "127.0.0.5")
        self.assertEqual(len(BlacklistIP.objects.all()), 1)
Create and set up new DHCP port for the specified network.
dataset/ETHPy150Open thornomad/django-hitcount/tests/test_admin.py/HitAdminTest.test_blacklist_ips_single--crossover with--dataset/ETHPy150Open openstack/neutron/neutron/agent/linux/dhcp.py/DeviceManager._setup_new_dhcp_port