def test_title(self, size):
        SUBSTR = 'SpaaHAaaAaham'
        s = SUBSTR * (size // len(SUBSTR) + 2)
        s = s.title()
        self.failUnless(s.startswith((SUBSTR * 3).title()))
        self.failUnless(s.endswith(SUBSTR.lower() * 3))