def __getattr__(self, name):
# Regular lookup failed, so split off the implementation and try the
# base name. If it still doesn't exist, __getattribute__ will throw an
# AttributeError, so it won't get stuck in infinite recursion.
# NOTE: Using type() ensures that the correct class object is queried,
# so the implementation list is correct--a static call via RHTestCase
# always returns an un-mangled name.
base, impl = type(self).splitImpl(name)
return unittest.TestCase.__getattribute__(self, base)
评论列表
文章目录