def _add_post(self, author_guid, title, content, domain=u'Microblog'):
     post = Post()
     post.author = author_guid
     post.author_guid = author_guid
     post.content = content
     post.title = title
     post.domain = domain
     post.post_id = title
     post.guid = post.post_id
     post.is_detailed = True
     post.is_LB = False
     self._db.addPost(post)
     self._posts.append(post)
    def create_dummy_post(self):
        post = Post()

        post.post_id = unicode(self.post_id)
        post.author = u"author"
        post.guid = unicode(generate_random_guid())
        post.title = u"title"
        post.url = u"http://google.com"
        post.date = str_to_date("2016-08-24 10:00:15")
        post.content = u"text"
        post.is_detailed = True
        post.is_LB = False
        post.is_valid = True
        post.domain = u"Google"
        post.author_guid = unicode(self.author_guid)
        post.post_osn_id = 123455678
        post.retweet_count = 11
        post.favorite_count = 10
        post.created_at = u"2016-08-24 10:00:15"

        return post