Reproduce a bug when a Child complex type is registered after its Parent (it's not actually).

This commit is contained in:
Christophe de Vienne
2011-11-07 18:57:23 +01:00
parent c180ddfd6a
commit a0f2c5db5f

View File

@@ -113,8 +113,11 @@ class TestTypes(unittest.TestCase):
class Child(Parent):
child_attribute = int
types.register_type(Parent)
types.register_type(Child)
assert len(Child._wsme_attributes) == 2
def test_selfreftype(self):
class SelfRefType(object):
pass