'Ensure index specs are inhertited correctly'

def test_inherited_index(self):

    class A(Document, ):
        title = StringField()
        meta = {'indexes': [{'fields': ('title',)}], 'allow_inheritance': True}
    class B(A, ):
        description = StringField()
    self.assertEqual(A._meta['index_specs'], B._meta['index_specs'])
    self.assertEqual([{'fields': [('_cls', 1), ('title', 1)]}], A._meta['index_specs'])
