'Tests if can handle a long user agent with failure'

def test_long_user_agent_not_valid(self):

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