Ejemplo n.º 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)
            )
Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)