예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 def create_empty(cls):
     """Create blank Comment object."""
     empty_comment = CommentEntity()
     empty_comment.type = cls.obj_comment
     return empty_comment
예제 #4
0
 def create_empty(cls):
   """Create blank Comment object."""
   empty_comment = CommentEntity()
   empty_comment.type = cls.obj_comment
   return empty_comment