'Tests the login lock trying to login a lot of times more
than failure limit'

def test_failure_limit_many(self):

    for i in range(1, FAILURE_LIMIT):
        response = self._login()
        self.assertContains(response, self.LOGIN_FORM_KEY)
    for i in range(0, random.randrange(1, FAILURE_LIMIT)):
        response = self._login()
        self.assertContains(response, self.LOCKED_MESSAGE)
