Ejemplo n.º 1
0
 def test_totitleUnderscore(self):
     out = machinestate.totitle("abc_defg")
     self.assertEqual(out, "AbcDefg")
Ejemplo n.º 2
0
 def test_totitleMixed(self):
     out = machinestate.totitle("abc_defg-hij")
     self.assertEqual(out, "AbcDefg-Hij")
Ejemplo n.º 3
0
 def test_totitleSpace(self):
     out = machinestate.totitle("abc defg")
     self.assertEqual(out, "AbcDefg")
Ejemplo n.º 4
0
 def test_totitleDash(self):
     out = machinestate.totitle("abc-defg")
     self.assertEqual(out, "Abc-Defg")
Ejemplo n.º 5
0
 def test_totitleEmpty(self):
     out = machinestate.totitle("")
     self.assertEqual(out, "")
Ejemplo n.º 6
0
 def test_totitleList(self):
     out = machinestate.totitle([1234.01, "123"])
     self.assertEqual(out, str([1234.01, "123"]))
Ejemplo n.º 7
0
 def test_totitleFloat(self):
     out = machinestate.totitle(1234.01)
     self.assertEqual(out, "1234.01")
Ejemplo n.º 8
0
 def test_totitleInt(self):
     out = machinestate.totitle(1234)
     self.assertEqual(out, "1234")
Ejemplo n.º 9
0
 def test_totitleNone(self):
     out = machinestate.totitle(None)
     self.assertEqual(out, "None")