示例#1
0
 def test_camelcase(self):
     self.assertEqual(camelcase("Foo"), "foo")
示例#2
0
 def test_2_camelcase(self):
     self.assertEqual(camelcase("foo_bar"), "fooBar")
示例#3
0
 def test_2_reverse_camelcase(self):
     self.assertEqual(camelcase("Foo_bar"), "fooBar")
示例#4
0
 def test_double_camelcase(self):
     self.assertEqual(camelcase(camelcase("foo_bar")), "fooBar")
示例#5
0
 def test_2_mixed_camelcase(self):
     self.assertEqual(camelcase("FooBarBaz_FooBarBaz"),
                      "foobarbazFoobarbaz")
示例#6
0
 def test_correct_CAPITALS_camelcase(self):
     self.assertEqual(camelcase("test_GUI_part"), "testGuiPart")
示例#7
0
 def test_pascalcase2camelcase(self):
     self.assertEqual(camelcase("FooBarBaz"), "fooBarBaz")
示例#8
0
 def test_preserve_already_3_camelcase(self):
     self.assertEqual(camelcase("fooBarBaz"), "fooBarBaz")
示例#9
0
 def test_3_camelcase(self):
     self.assertEqual(camelcase("foo_bar_baz"), "fooBarBaz")