def test_safe_get_log_level__unsupported_parser(self): """Check using an ArgumentParser that doesn't support --log-level.""" parser = ArgumentParser() with self.assertRaises(AttributeError): actual = parser.safe_get_log_level([], error_level=42)