# Path: auto_forensicate/hostinfo.py
# def ReadDMI(name):
# def GetChassisSerial():
# def GetMachineUUID():
# def GetRandomUUID():
# def GetIdentifier():
# def GetUdevadmInfo(device_name):
# def GetTime():
# def Which(cmd):


import unittest
import uuid
import mock
from auto_forensicate import hostinfo
    }
    return fake_dmi_values.get(name, None)

  def _ReadDMIMachineUUID(self, name):
    fake_dmi_values = {
        'chassis_serial': None,
        'product_uuid': 'test_uuid',
    }
    return fake_dmi_values.get(name, None)

  def _ReadDMIRandom(self, name):
    fake_dmi_values = {
        'chassis_serial': None,
        'product_uuid': None,
    }
    return fake_dmi_values.get(name, None)

  def _FakeTime(self):
    return '20171012-135619'

  def _FakeAskText(self, _, mandatory=False):
    if mandatory:
      return 'fake mandatory value'
    return 'fake value'

  def testGetIdendifierWithSerial(self):
    hostinfo.ReadDMI = self._ReadDMISerial
    self.assertEqual(hostinfo.GetIdentifier(), 'test_serial')

  def testGetIdendifierWithUUID(self):

# Path: auto_forensicate/hostinfo.py
# def ReadDMI(name):
# def GetChassisSerial():
# def GetMachineUUID():
# def GetRandomUUID():
# def GetIdentifier():
# def GetUdevadmInfo(device_name):
# def GetTime():
# def Which(cmd):


# Path: tests/hostinfo_tests.py
import unittest
import uuid
import mock
from auto_forensicate import hostinfo

    }
    return fake_dmi_values.get(name, None)

  def _ReadDMIMachineUUID(self, name):
    fake_dmi_values = {
        'chassis_serial': None,
        'product_uuid': 'test_uuid',
    }
    return fake_dmi_values.get(name, None)

  def _ReadDMIRandom(self, name):
    fake_dmi_values = {
        'chassis_serial': None,
        'product_uuid': None,
    }
    return fake_dmi_values.get(name, None)

  def _FakeTime(self):
    return '20171012-135619'

  def _FakeAskText(self, _, mandatory=False):
    if mandatory:
      return 'fake mandatory value'
    return 'fake value'

  def testGetIdendifierWithSerial(self):
    hostinfo.ReadDMI = self._ReadDMISerial
    self.assertEqual(hostinfo.GetIdentifier(), 'test_serial')

  def testGetIdendifierWithUUID(self):

    hostinfo.ReadDMI = self._ReadDMIMachineUUID