def add_posts(self, no_of_posts): for post in range(1, no_of_posts): body = paragraphs() header = sentences() img_path = "tactical_gif@/home/deepak/Pictures/tactification/" + str( post) + ".png" self.tactification_add_post(body, header, img_path)
def edit_posts(self, post_id): body = paragraphs() header = sentences() img_path = "tactical_gif@/home/deepak/Pictures/tactification/" + str( post_id) + ".png" self.tactification_edit_post(post_id, body, header, img_path) return header
def test_sentences(self): result = lorem_ipsum.sentences() assert len(result.split('.')) == 3 result2 = lorem_ipsum.sentences(as_list=True) self.assertTrue(type(result2) == list)
def test_sentences(self): result = lorem_ipsum.sentences() assert len(result.split('.')) == 3