]> git.scottworley.com Git - paperdoorknob/blobdiff - glowfic_test.py
Strip links from meta fields
[paperdoorknob] / glowfic_test.py
index 9b802c180cf3463e659f892948b0c9a64d4f936e..2d01c2a7e85b2d272fb60ed4dafcb657be72440e 100644 (file)
@@ -11,6 +11,7 @@ from bs4 import BeautifulSoup
 
 from images import FakeImageStore
 from glowfic import chunkDOMs, makeChunk
 
 from images import FakeImageStore
 from glowfic import chunkDOMs, makeChunk
+from texify import PandocTexifier
 
 
 class TestSplit(unittest.TestCase):
 
 
 class TestSplit(unittest.TestCase):
@@ -67,6 +68,9 @@ class TestMakeChunk(unittest.TestCase):
         self.assertEqual(str(c.content),
                          '<div class="post-content"><p></p></div>')
 
         self.assertEqual(str(c.content),
                          '<div class="post-content"><p></p></div>')
 
+        self.assertEqual(
+            PandocTexifier("pandoc").texify(c.character), b'{Keltham}\n')
+
 
 if __name__ == '__main__':
     unittest.main()
 
 if __name__ == '__main__':
     unittest.main()