예제 #1
0
    def save_comment(self):
        self.new_comment.save_comment()
        self.assertTrue(len(Comments.query.all()> 0)

    def test_get_comment(self):
        self.new_comment.save_comment()
        comment = Comments.get_comment(1)
        self.assertTrue(comment is not None)
예제 #2
0
    def test_get_comment_by_id(self):

        self.new_comment.save_comment()
        got_comment = Comments.get_comment(1)
        self.assertTrue(len(got_comment) > 0)
예제 #3
0
 def test_get_comment(self):
     self.new_comment.save()
     get_comment = Comments.get_comment(1)
     self.assertTrue(get_comment is not None)