blob: b70d8095e19d6a2550e6b110dbecb4f62ff6079e [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001'''
2Created on Aug 18, 2017
3
4@author: sw6830
5'''
efiacor125390b2020-05-06 01:14:00 +01006import time
7import uuid
8
Gary Wu9abb61c2018-09-27 10:38:50 -07009from robot.api import logger
efiacor125390b2020-05-06 01:14:00 +010010
Gary Wu9abb61c2018-09-27 10:38:50 -070011
12class xNFLibrary(object):
13
14 def __init__(self):
15 pass
16
efiacor125390b2020-05-06 01:14:00 +010017 @staticmethod
18 def create_header_from_string(dict_str):
Gary Wu9abb61c2018-09-27 10:38:50 -070019 logger.info("Enter create_header_from_string: dictStr")
efiacor125390b2020-05-06 01:14:00 +010020 return dict(u.split("=") for u in dict_str.split(","))
Gary Wu9abb61c2018-09-27 10:38:50 -070021
efiacor125390b2020-05-06 01:14:00 +010022 @staticmethod
Gary Wu9abb61c2018-09-27 10:38:50 -070023 def Generate_UUID(self):
24 """generate a uuid"""
25 return uuid.uuid4()
26
efiacor125390b2020-05-06 01:14:00 +010027
Gary Wu9abb61c2018-09-27 10:38:50 -070028if __name__ == '__main__':
29 lib = xNFLibrary()
efiacor125390b2020-05-06 01:14:00 +010030 time.sleep(100000)