def test_long_user_agent_not_valid(self):
        long_user_agent = 'ie6' * 1024
        for i in range(0, config.FAILURE_LIMIT + 1):
            response = self._login(user_agent=long_user_agent)

        self.assertContains(response, self.LOCKED_MESSAGE)
Tests if can handle a long user agent with failure
dataset/ETHPy150Open kencochrane/django-defender/defender/tests.py/AccessAttemptTest.test_long_user_agent_not_valid