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