def test_2_reverse_pascalcase(self): self.assertEqual(pascalcase("foo_Bar"), "FooBar")
def test_double_pascalcase(self): self.assertEqual(pascalcase(pascalcase("foo_bar")), "FooBar")
def test_correct_CAPITALS_pascalcase(self): self.assertEqual(pascalcase("test_GUI_part"), "TestGuiPart")
def test_2_mixed_pascalcase(self): self.assertEqual(pascalcase("FooBarBaz_FooBarBaz"), "FoobarbazFoobarbaz")
def test_camelcase2pascalcase(self): self.assertEqual(pascalcase("fooBarBaz"), "FooBarBaz")
def test_preserve_already_3_pascalcase(self): self.assertEqual(pascalcase("FooBarBaz"), "FooBarBaz")
def test_3_pascalcase(self): self.assertEqual(pascalcase("foo_bar_baz"), "FooBarBaz")
def test_2_pascalcase(self): self.assertEqual(pascalcase("foo_bar"), "FooBar")
def test_pascalcase(self): self.assertEqual(pascalcase("foo"), "Foo")