def test_blacklist_user_agents_single(self):
        qs = Hit.objects.filter(ip="127.0.0.5")
        self.admin.blacklist_user_agents(self.request, qs)
        ua = BlacklistUserAgent.objects.get(pk=1)
        self.assertEqual(ua.user_agent, 'agent_5')
        self.assertEqual(len(BlacklistUserAgent.objects.all()), 1)
Test adding `blacklist_user_agent` via Admin action.
dataset/ETHPy150Open thornomad/django-hitcount/tests/test_admin.py/HitAdminTest.test_blacklist_user_agents_single