def test_PascalCase_case_changer_two(self): InitCase = CaseChanger("PascalCase") output = CaseChanger.case_selector(InitCase, "RanDom_CapitAlised_WOrd") self.assertNotEqual("RanDom_CapitAlised_WOrd", output) self.assertEqual("RandomCapitalisedWord", output)
def test_PascalCase_case_changer_three(self): InitCase = CaseChanger("PascalCase") output = CaseChanger.case_selector(InitCase, "alllowercase") self.assertNotEqual("alllowercase", output) self.assertEqual("AllLowerCase", output)
def test_UPPER_SNAKE_CASE_case_changer_three(self): InitCase = CaseChanger("UPPER_SNAKE_CASE") output = CaseChanger.case_selector(InitCase, "alllowercase") self.assertNotEqual("alllowercase", output) self.assertEqual("ALL_LOWER_CASE", output)
def test_PascalCase_case_changer_one(self): InitCase = CaseChanger("PascalCase") output = CaseChanger.case_selector(InitCase, "PascalcaseTest") self.assertEqual("PascalcaseTest", output)
def test_camelCase_case_changer_one(self): InitCase = CaseChanger("camelCase") output = CaseChanger.case_selector(InitCase, "PascalcaseToCamelcase") self.assertEqual("pascalcaseToCamelcase", output)
def test_UPPER_SNAKE_CASE_case_changer_two(self): InitCase = CaseChanger("UPPER_SNAKE_CASE") output = CaseChanger.case_selector(InitCase, "RanDom_CapitAlised_WOrd") self.assertNotEqual("RanDom_CapitAlised_WOrd", output) self.assertEqual("RANDOM_CAPITALISED_WORD", output)
def test_UPPER_SNAKE_CASE_case_changer_one(self): InitCase = CaseChanger("UPPER_SNAKE_CASE") output = CaseChanger.case_selector(InitCase, "PascalcaseToUpperSnakecase") self.assertEqual("PASCALCASE_TO_UPPER_SNAKECASE", output)
def test_snake_case_case_case_changer_three(self): InitCase = CaseChanger("camelCase") output = CaseChanger.case_selector(InitCase, "alllowercase") self.assertNotEqual("alllowercase", output) self.assertEqual("all_lower_case", output)
def test_lower_snake_case_case_changer_two(self): InitCase = CaseChanger("lower_snake_case") output = CaseChanger.case_selector(InitCase, "RanDom_CapitAlised_WOrd") self.assertNotEqual("RanDom_CapitAlised_WOrd", output) self.assertEqual("random_capitalised_word", output)
def test_lower_snake_case_case_changer_one(self): InitCase = CaseChanger("lower_snake_case") output = CaseChanger.case_selector(InitCase, "PascalcaseToLowerSnakecase") self.assertEqual("pascalcase_to_lower_snakecase", output)
def test_camelCase_case_changer_four(self): InitCase = CaseChanger("camelCase") output = CaseChanger.case_selector(InitCase, "ALLUPERCASE") self.assertNotEqual("alllowercase", output) self.assertEqual("allLowerCase", output)