'Read the shed tools from the tool shed test file if given,
otherwise an empty dict.'

def _get_shed_tools_dict(self):

    shed_tools_dict = {}
    if self.tool_shed_test_file:
        try:
            f = open(self.tool_shed_test_file, 'r')
            text = f.read()
            f.close()
            shed_tools_dict = loads(text)
        except Exception as exc:
            log.error('Error    reading    tool    shed    test    file    "%s":    %s', self.tool_shed_test_file, exc, exc_info=True)
    return shed_tools_dict
