def setUp(self): """Setup the class.""" import json class TestDocument(Document): title = db.StringField() self.model_cls = TestDocument self.data = json.dumps({"title": "Test"})