def METHOD_NAME(self):
    recipient = "success@a.com"
    code = Code.create_for_user(user=self.new_user, recipient=recipient, length=settings.AUTH_CODE_LENGTH)
    Code.check_code(recipient=recipient, code=code.code)  # activate first time
    with self.assertRaises(InvalidCode):
        Code.check_code(recipient=recipient, code=code.code)