# Setup
# Obama가 1번 포스트에 댓글을 남겼다!
self.comment_001 = Comment.objects.create(
post = self.post_001,
author=self.user_obama,
content = '첫 번째 댓글입니다.'
)
# post_detail
# comment-area에서 1번 포스트에 오바마가 댓글을 썼는지 확인
comment_area = soup.find('div', id='comment-area')
comment_001_area = comment_area.find('div',id='comment-1')
self.assertIn(self.comment_001.author.username,comment_001_area.text)
self.assertIn(self.comment_001.content,comment_001_area.text)