'Saving an abstract document should fail.'

def test_save_abstract_document(self):

    class Doc(Document, ):
        name = StringField()
        meta = {'abstract': True}
    with self.assertRaises(InvalidDocumentError):
        Doc(name='aaa').save()
