from base_test import BaseTest


class TestArticle(BaseTest):
    def test_render_html(self):
        """
        Tests that render_html returns valid HTML
        """
        self.simple_article.content = "# Test"
        html = self.simple_article.render_html()
        self.assertEquals(html, "<h1>Test</h1>")

@@ -306,8 +306,1430 @@
 %3C/h1%3E%22)%0A
+%0A    def test_increment_love_count_default(self):%0A        %22%22%22%0A        Tests that increment_love_count increments the love_count by 1%0A        by default%0A        %22%22%22%0A        self.simple_article.increment_love_count()%0A        self.simple_article.was_updated()%0A        self.simple_article.save()%0A        self.assertEquals(self.simple_article.love_count, 1)%0A%0A    def test_increment_love_count_custom(self):%0A        %22%22%22%0A        Tests that increment_love_count increments the love_count by%0A        our custom factor%0A        %22%22%22%0A        self.simple_article.increment_love_count(9)%0A        self.simple_article.was_updated()%0A        self.simple_article.save()%0A        self.assertEquals(self.simple_article.love_count, 9)%0A%0A    def test_increment_read_count_default(self):%0A        %22%22%22%0A        Tests that increment_love_count increments the read_count by 1%0A        by default%0A        %22%22%22%0A        self.simple_article.increment_read_count()%0A        self.simple_article.was_updated()%0A        self.simple_article.save()%0A        self.assertEquals(self.simple_article.read_count, 1)%0A%0A    def test_increment_read_count_custom(self):%0A        %22%22%22%0A        Tests that increment_read_count increments the read_count by%0A        our custom factor%0A        %22%22%22%0A        self.simple_article.increment_read_count(9)%0A        self.simple_article.was_updated()%0A        self.simple_article.save()%0A        self.assertEquals(self.simple_article.read_count, 9)%0A

Add tests for counting