Esempio n. 1
0
    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)
Esempio n. 2
0
    def test_PascalCase_case_changer_three(self):
        InitCase = CaseChanger("PascalCase")
        output = CaseChanger.case_selector(InitCase, "alllowercase")

        self.assertNotEqual("alllowercase", output)
        self.assertEqual("AllLowerCase", output)
Esempio n. 3
0
    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)
Esempio n. 4
0
    def test_PascalCase_case_changer_one(self):
        InitCase = CaseChanger("PascalCase")
        output = CaseChanger.case_selector(InitCase, "PascalcaseTest")

        self.assertEqual("PascalcaseTest", output)
Esempio n. 5
0
    def test_camelCase_case_changer_one(self):
        InitCase = CaseChanger("camelCase")
        output = CaseChanger.case_selector(InitCase, "PascalcaseToCamelcase")

        self.assertEqual("pascalcaseToCamelcase", output)
Esempio n. 6
0
    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)
Esempio n. 7
0
    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)
Esempio n. 8
0
    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)
Esempio n. 9
0
    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)
Esempio n. 10
0
    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)
Esempio n. 11
0
    def test_camelCase_case_changer_four(self):
        InitCase = CaseChanger("camelCase")
        output = CaseChanger.case_selector(InitCase, "ALLUPERCASE")

        self.assertNotEqual("alllowercase", output)
        self.assertEqual("allLowerCase", output)