def test_concrete_abc_detection(self):
@six.add_metaclass(abc.ABCMeta)
class B(object):
def __init__(self):
self.foo = 'bar'
class Concrete(B, pure_interface.PureInterface):
pass
self.assertFalse(Concrete._pi.type_is_pure_interface)
try:
c = Concrete()
except Exception as exc:
self.fail('Instantiation failed {}'.format(exc))
test_implementation_checks.py 文件源码
python
阅读 28
收藏 0
点赞 0
评论 0
评论列表
文章目录