def test_validate_invalid(self):
    unauthorized_token = uuidsentinel.token
    self.assertRaises(exception.InvalidToken, objects.ConsoleAuthToken.validate, self.context, unauthorized_token)
def test_validate_invalid(self):
    unauthorized_token = uuidsentinel.token
    self.assertRaises(exception.InvalidToken, objects.ConsoleAuthToken.validate, self.context, unauthorized_token)