+ self.assertEqual(
+ PandocTexifier("pandoc").texify(c.character), b'{Keltham}\n')
+
+
+class TestThread(unittest.TestCase):
+
+ def testTitle(self) -> None:
+ t = Thread(spec_for_testing(b'''
+ <html><body>
+ <div class="content-header">
+ <span id="post-title">
+ <a href="/posts/1234">Teh Story!</a>
+ </span>
+ </div>
+ <div class="post-container post-post">The "post"</div>
+ </body></html>'''))
+ self.assertEqual(t.title(), 'Teh Story!')
+