def test_init_caps(self):
     self.assertEqual(init_caps('one'), 'One')
     self.assertEqual(init_caps('one two three'), 'One Two Three')
     self.assertEqual(init_caps('FOUR FIVE'), 'Four Five')
     self.assertEqual(init_caps(''), '')
 def set_name_and_caption(self):
     """Use requested name for the caption, but sanitise name.
     """
     self.name = self.name or 'name-missing'
     self.caption = init_caps(self.name)
     self.name = sanitise_name(self.name)