3
0
Fork 0

fix: add AppHandler.make_title() convenience method

This commit is contained in:
Lance Edgar 2024-08-04 14:23:02 -05:00
parent 27b859c1c7
commit 739dd285aa
4 changed files with 41 additions and 1 deletions

View file

@ -116,6 +116,10 @@ class TestAppHandler(TestCase):
def test_get_title(self):
self.assertEqual(self.app.get_title(), 'WuttJamaican')
def test_make_title(self):
text = self.app.make_title('foo_bar')
self.assertEqual(text, "Foo Bar")
def test_make_uuid(self):
uuid = self.app.make_uuid()
self.assertEqual(len(uuid), 32)