Skip to content

Commit

Permalink
1. remove html parser testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
WUJISHANXIA committed Oct 15, 2017
1 parent 36b79b0 commit e9be443
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions bootcamp/articles/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ def setUp(self):
everybody always wants the real deal.''',
create_user=self.user,
)
self.long_word_content = ('thisisalonglonglonglonglonglonglonglongword'
'longlonglonglonglonglonglonglonglonglongword')
self.normal_content = ('This is a really long long long long long long '
'long long long long long long long long content')

def test_object_instance(self):
self.assertTrue(isinstance(self.article, Article))
Expand All @@ -62,11 +58,9 @@ def test_return_values(self):
self.assertEqual(self.article.get_summary(), self.article.content)
self.assertEqual(len(self.not_p_article.get_summary()), 258)
self.assertEqual(self.article.get_summary_as_markdown(),
'This is a really good content')
'<p>This is a really good content</p>')
self.assertTrue(self.article_comment in self.article.get_comments())
self.assertEqual(str(self.article_comment),
'test_user - A really nice title')
self.assertEqual(self.article_comment.get_comment_as_markdown(),
'<p>A really nice comment</p>')
self.assertEqual(self.article.insert_space_to_long_word(self.normal_content),self.normal_content)
self.assertTrue(' ' in self.article.insert_space_to_long_word(self.long_word_content))

0 comments on commit e9be443

Please sign in to comment.