Exemple #1
0
 def test_2_reverse_pascalcase(self):
     self.assertEqual(pascalcase("foo_Bar"), "FooBar")
Exemple #2
0
 def test_double_pascalcase(self):
     self.assertEqual(pascalcase(pascalcase("foo_bar")), "FooBar")
Exemple #3
0
 def test_correct_CAPITALS_pascalcase(self):
     self.assertEqual(pascalcase("test_GUI_part"), "TestGuiPart")
Exemple #4
0
 def test_2_mixed_pascalcase(self):
     self.assertEqual(pascalcase("FooBarBaz_FooBarBaz"),
                      "FoobarbazFoobarbaz")
Exemple #5
0
 def test_camelcase2pascalcase(self):
     self.assertEqual(pascalcase("fooBarBaz"), "FooBarBaz")
Exemple #6
0
 def test_preserve_already_3_pascalcase(self):
     self.assertEqual(pascalcase("FooBarBaz"), "FooBarBaz")
Exemple #7
0
 def test_3_pascalcase(self):
     self.assertEqual(pascalcase("foo_bar_baz"), "FooBarBaz")
Exemple #8
0
 def test_2_pascalcase(self):
     self.assertEqual(pascalcase("foo_bar"), "FooBar")
Exemple #9
0
 def test_pascalcase(self):
     self.assertEqual(pascalcase("foo"), "Foo")