fix: add make_full_name()
function, app handler method
This commit is contained in:
parent
b3ec7cb9b8
commit
60a25ab342
4 changed files with 41 additions and 1 deletions
|
@ -384,6 +384,10 @@ app_title = WuttaTest
|
|||
text = self.app.make_title('foo_bar')
|
||||
self.assertEqual(text, "Foo Bar")
|
||||
|
||||
def test_make_full_name(self):
|
||||
name = self.app.make_full_name('Fred', '', 'Flintstone', '')
|
||||
self.assertEqual(name, "Fred Flintstone")
|
||||
|
||||
def test_make_uuid(self):
|
||||
uuid = self.app.make_uuid()
|
||||
self.assertEqual(len(uuid), 32)
|
||||
|
|
|
@ -263,6 +263,13 @@ class TestMakeTitle(TestCase):
|
|||
self.assertEqual(text, "Foo Bar")
|
||||
|
||||
|
||||
class TestMakeFullName(TestCase):
|
||||
|
||||
def test_basic(self):
|
||||
name = mod.make_full_name('Fred', '', 'Flintstone', '')
|
||||
self.assertEqual(name, 'Fred Flintstone')
|
||||
|
||||
|
||||
class TestProgressLoop(TestCase):
|
||||
|
||||
def test_basic(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue