Пример #1
0
    def set_header_args():
        """return base Headers."""

        for htp in ['object_headers', 'container_headers', 'base_headers']:
            set_args[htp] = basic.keys2dict(
                chl=set_args.get(htp)
            )
Пример #2
0
    def set_header_args():
        """return base Headers.

        :return set_args:
        """

        for htp in ['object_headers', 'container_headers', 'base_headers']:
            set_args[htp] = basic.keys2dict(chl=set_args.get(htp))
Пример #3
0
    def set_header_args():
        """return base Headers.

        :return set_args:
        """

        for htp in ["object_headers", "container_headers", "base_headers"]:
            set_args[htp] = basic.keys2dict(chl=set_args.get(htp))
Пример #4
0
 def test_keys2dict_with_none_value(self):
     list_of_strings = None
     return_dict = basic_utils.keys2dict(chl=list_of_strings)
     self.assertEqual(return_dict, None)
Пример #5
0
 def test_keys2dict(self):
     list_of_strings = ['test=value']
     return_dict = basic_utils.keys2dict(chl=list_of_strings)
     self.assertIsInstance(return_dict, dict)
Пример #6
0
 def test_keys2dict_with_none_value(self):
     list_of_strings = None
     return_dict = basic_utils.keys2dict(chl=list_of_strings)
     self.assertEqual(return_dict, None)
Пример #7
0
 def test_keys2dict(self):
     list_of_strings = ['test=value']
     return_dict = basic_utils.keys2dict(chl=list_of_strings)
     self.assertIsInstance(return_dict, dict)