def test_blacklist_ips_add_only_once(self):
        qs = Hit.objects.filter(ip="127.0.0.5")
        self.admin.blacklist_ips(self.request, qs)
        self.assertEqual(len(BlacklistIP.objects.all()), 1)

        # adding a second time should not increase the list
        qs = Hit.objects.filter(ip="127.0.0.5")
        self.admin.blacklist_ips(self.request, qs)
        self.assertEqual(len(BlacklistIP.objects.all()), 1)
Test adding `blacklist_ips` to ensure adding the same IP address more
dataset/ETHPy150Open thornomad/django-hitcount/tests/test_admin.py/HitAdminTest.test_blacklist_ips_add_only_once