X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/aa060d9ba5891fd87fc62664fb30b75bf0463e3e..62043b2bafbcb57beae7559235bd6984b6275b55:/glowfic_test.py?ds=inline diff --git a/glowfic_test.py b/glowfic_test.py index d3a6d56..2d01c2a 100644 --- a/glowfic_test.py +++ b/glowfic_test.py @@ -11,6 +11,7 @@ from bs4 import BeautifulSoup from images import FakeImageStore from glowfic import chunkDOMs, makeChunk +from texify import PandocTexifier class TestSplit(unittest.TestCase): @@ -57,12 +58,19 @@ class TestMakeChunk(unittest.TestCase): c.icon, 'stored:https://d1anwqy6ci9o1i.cloudfront.net/' + 'users%2F366%2Ficons%2Fxqmypqvflgdy28aorw9ml_shock.png') - self.assertEqual(c.character, 'Keltham') - self.assertEqual(c.screen_name, 'lawful chaotic') - self.assertEqual(c.author, 'Iarwain') + assert c.character + assert c.screen_name + assert c.author + self.assertEqual(list(c.character.stripped_strings), ['Keltham']) + self.assertEqual( + list(c.screen_name.stripped_strings), ['lawful chaotic']) + self.assertEqual(list(c.author.stripped_strings), ['Iarwain']) self.assertEqual(str(c.content), '