From a0f2c5db5f6eafe2b6252d7b54257c785bb49329 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Mon, 7 Nov 2011 18:57:23 +0100 Subject: [PATCH] Reproduce a bug when a Child complex type is registered after its Parent (it's not actually). --- wsme/tests/test_types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wsme/tests/test_types.py b/wsme/tests/test_types.py index a5b49bf..50bc286 100644 --- a/wsme/tests/test_types.py +++ b/wsme/tests/test_types.py @@ -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