Chris Chambers avatar Chris Chambers committed afedc09

Added test for new updates in list functionality

Comments (0)

Files changed (1)

tests/__init__.py

         u'<p>More text.</p>'
         )
         self.assertEqual(
-        document.excerpt(),
-        u'<h3>Update: 20 August 2011 @ 1:30pm</h3>\n'
-        u'<p>I was confused as to the definition of idempotent. It would\n'
-           u'be more accurate to describe the transaction as reversible.</p>'
+        document.excerpt(), document.html
         )
 
     @md('''
     def test_asterisk_horizontal_rule(self, document):
         self.assertEqual(document.html, u'<p>Text.</p>\n<p>More text.</p>')
 
+    @md('''
+        1.  Ac turpis egestas.
+        
+        * * * * *
+       
+        2.  ###Update: 20 August 2011 @ 1:30pm (America/Los_Angeles)
 
+        Neque. Praesent rhoncus.
+
+        * * * * *
+
+        3. Maecenas sit amet.
+        ''')
+    def test_updates_in_lists(self, document):
+        self.assertEqual(document.html.count(u'<ol>'), 1)
+        self.assertEqual(document.html.count(u'<li>'), 3)
+
+       
 # This code is taken from http://stackoverflow.com/questions/1615406
 
 # Django already runs these, don't include them again
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.