def __init__(self): self.collectors = [ collector.StaticFactsCollector(), host_collector.HostCollector(), hwprobe.HardwareCollector(), custom.CustomFactsCollector(), insights.InsightsCollector() ]
def setUp(self): self.collector = insights.InsightsCollector() self.machine_id_fp = tempfile.NamedTemporaryFile() if six.PY3: self.machine_id_fp.write(bytes(INSIGHT_TEST_UUID, 'UTF-8')) else: self.machine_id_fp.write(INSIGHT_TEST_UUID) self.machine_id_fp.flush()
def setUp(self): self.collector = insights.InsightsCollector() self.machine_id_fp = tempfile.NamedTemporaryFile() self.machine_id_fp.write(bytes(INSIGHT_TEST_UUID, "UTF-8")) self.machine_id_fp.flush()