test case for multiple inheritance raising MRO exception

This commit is contained in:
Anthony Nemitz 2012-08-23 18:08:12 -07:00
parent ba276452fb
commit a4b09344af

View File

@ -365,6 +365,28 @@ class DocumentTest(unittest.TestCase):
Animal.drop_collection()
def test_document_inheritance(self):
"""
"""
class DateCreatedDocument(Document):
meta = {
'allow_inheritance': True,
'abstract': True,
}
class DateUpdatedDocument(Document):
meta = {
'allow_inheritance': True,
'abstract': True,
}
def create_my_document():
class MyDocument(DateCreatedDocument, DateUpdatedDocument):
pass
create_my_document()
def test_how_to_turn_off_inheritance(self):
"""Demonstrates migrating from allow_inheritance = True to False.
"""