Fixed MRO error that occured on document inheritance

This commit is contained in:
Harry Marr
2010-04-17 21:45:11 +01:00
parent edfda6ad5b
commit 3b4df4615a
2 changed files with 16 additions and 10 deletions

View File

@@ -127,6 +127,11 @@ class DocumentTest(unittest.TestCase):
self.assertEqual(Employee._meta['collection'],
self.Person._meta['collection'])
# Ensure that MRO error is not raised
class A(Document): pass
class B(A): pass
class C(B): pass
def test_allow_inheritance(self):
"""Ensure that inheritance may be disabled on simple classes and that
_cls and _types will not be used.