Module Import alias Import alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Call NameLoad ListLoad Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Str TryExcept body Raise Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Raise Call NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str TryExcept body Raise Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad keyword Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A binascii N/A unittest dns.exception DNSException FormatedError N/A DNSException N/A N/A fmt Custom format: {parameter} N/A supp_kwargs N/A set N/A parameter N/A ExceptionTestCase N/A N/A unittest TestCase N/A test_custom_message N/A N/A self N/A N/A N/A msg this is a custom message N/A N/A N/A N/A DNSException msg N/A N/A N/A DNSException N/A ex N/A N/A N/A N/A self assertEqual N/A str ex msg N/A test_implicit_message N/A N/A self N/A N/A N/A N/A N/A N/A DNSException N/A N/A N/A DNSException N/A ex N/A N/A N/A N/A self assertEqual N/A N/A ex __class__ __doc__ N/A str ex N/A test_formatted_error N/A N/A self N/A N/A N/A Exceptions with explicit format has to respect it. N/A params N/A parameter value N/A N/A N/A N/A FormatedError params N/A N/A N/A FormatedError N/A ex N/A N/A msg N/A N/A N/A FormatedError fmt format params N/A N/A N/A self assertEqual msg N/A str ex N/A test_kwargs_only N/A N/A self N/A N/A N/A Kwargs cannot be combined with args. N/A N/A N/A self assertRaises AssertionError N/A N/A N/A FormatedError 1 a 2 N/A test_kwargs_unsupported N/A N/A self N/A N/A N/A Only supported kwargs are accepted. N/A N/A N/A self assertRaises AssertionError N/A N/A N/A FormatedError unsupported 2 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main