Better testing of classes.

This commit is contained in:
Dave Halter
2015-12-12 02:48:37 +01:00
parent 75ac2b9686
commit 28585dcdba
2 changed files with 17 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
class Base(object):
class Nested():
def foo():
pass
class X(Base.Nested):
pass
X().foo()
#! 4 attribute-error
X().bar()