def METHOD_NAME(self, claim):
    """
    Verify that tokens that do not carry 'exp' or 'iat' claims are rejected
    """
    authentication = JwtAuthentication()
    user = UserFactory()
    jwt_payload = self.default_payload(user)
    del jwt_payload[claim]
    jwt_value = self.generate_token(jwt_payload)
    request = APIRequestFactory().get("dummy", HTTP_AUTHORIZATION=f"JWT {jwt_value}")
    with self.assertRaises(AuthenticationFailed):
        authentication.authenticate(request)