def _create_random_comment(cls): """Create Comment entity with randomly and predictably filled fields.""" random_comment = CommentEntity() random_comment.type = cls.obj_comment random_comment.modified_by = ObjectPersonsFactory().default().__dict__ random_comment.description = cls.generate_string(cls.obj_comment) return random_comment
def create_empty(cls): """Create blank Comment object.""" empty_comment = CommentEntity() empty_comment.type = cls.obj_comment return empty_comment