def test_totitleUnderscore(self): out = machinestate.totitle("abc_defg") self.assertEqual(out, "AbcDefg")
def test_totitleMixed(self): out = machinestate.totitle("abc_defg-hij") self.assertEqual(out, "AbcDefg-Hij")
def test_totitleSpace(self): out = machinestate.totitle("abc defg") self.assertEqual(out, "AbcDefg")
def test_totitleDash(self): out = machinestate.totitle("abc-defg") self.assertEqual(out, "Abc-Defg")
def test_totitleEmpty(self): out = machinestate.totitle("") self.assertEqual(out, "")
def test_totitleList(self): out = machinestate.totitle([1234.01, "123"]) self.assertEqual(out, str([1234.01, "123"]))
def test_totitleFloat(self): out = machinestate.totitle(1234.01) self.assertEqual(out, "1234.01")
def test_totitleInt(self): out = machinestate.totitle(1234) self.assertEqual(out, "1234")
def test_totitleNone(self): out = machinestate.totitle(None) self.assertEqual(out, "None")