]> git.scottworley.com Git - paperdoorknob/blobdiff - glowfic_test.py
Support _ in URLs
[paperdoorknob] / glowfic_test.py
index d3a6d563f8930150eb32296ceb1973afb96d3af8..9b802c180cf3463e659f892948b0c9a64d4f936e 100644 (file)
@@ -57,9 +57,13 @@ 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),
                          '<div class="post-content"><p></p></div>')