예제 #1
0
 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)
예제 #2
0
 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
예제 #3
0
    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)
예제 #4
0
 def test_sentences(self):
     result = lorem_ipsum.sentences()
     assert len(result.split('.')) == 3