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

@ -232,3 +232,10 @@ class TestParseList(TestCase):
self.assertEqual(value[0], 'foo')
self.assertEqual(value[1], 'C:\\some path\\with spaces\\and, a comma')
self.assertEqual(value[2], 'baz')
class TestMakeTitle(TestCase):
def test_basic(self):
text = util.make_title('foo_bar')
self.assertEqual(text, "Foo Bar")