def test_invalid_argument_exception(self):
        """Checks if the information of the exception is correct."""
        exception = InvalidArgumentException(['123', 'df'])
        self.assertEqual(exception.status_code, HTTPStatus.BAD_REQUEST)
        self.assertEqual(
            exception.to_dict(), {
                'code': 400,
                'message': 'Invalid argument or payload.',
                'details': [
                    '123',
                    'df',
                ]
            })
Checks if the information of the exception is correct.
web_console_v2/api/test/fedlearner_webconsole/exceptions_test.py