예제 #1
0
    def convert_keys(cls, keys):
        to_return = []
        for key in keys:
            snake_key = to_snake_case(key)

            if snake_key not in CloudManagerBase.COMMON_API_ATTRIBUTES:
                to_return.append(snake_key)
        return to_return
    def convert_keys(cls, keys):
        to_return = []
        for key in keys:
            snake_key = to_snake_case(key)

            if snake_key not in CloudManagerBase.COMMON_API_ATTRIBUTES:
                to_return.append(snake_key)
        return to_return
    def test_round_trip(self):

        _input = "thisIsATest"
        round_trip = to_camel_case(to_snake_case(_input))
        self.assertEqual(round_trip, _input)
    def test_to_snake(self):

        _input = "thisIsATest"
        expected = "this_is_a_test"

        self.assertEqual(to_snake_case(_input), expected)