def testNameToLabel(self):
        nameData = [
            ('f', 'F'),
            ('fo', 'Fo'),
            ('foo', 'Foo'),
            ('fooBar', 'Foo Bar'),
            ('fooBarBaz', 'Foo Bar Baz'),
            ]
        for inp, out in nameData:
            got = util.nameToLabel(inp)
            self.assertEqual(
                got, out,
                "nameToLabel(%r) == %r != %r" % (inp, got, out))
This function should be overloaded in subclasses that allow non-trivial
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_util.py/UtilTestCase.testNameToLabel--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index._maybe_cast_slice_bound