def test_long_user_agent_valid(self):
        long_user_agent = 'ie6' * 1024
        response = self._login(username=VALID_USERNAME, password=VALID_PASSWORD,
                               user_agent=long_user_agent)
        self.assertNotContains(response, LOGIN_FORM_KEY, status_code=302)
Tests if can handle a long user agent
dataset/ETHPy150Open kencochrane/django-defender/defender/tests.py/AccessAttemptTest.test_long_user_agent_valid