'Asserts for `autotest.client.kvm_control.get_kvm_arch`
:returns: None'

def test_get_kvm_arch(self):

    self._mock_cpu_info('GenuineIntel\nvmx')
    self.assertTrue((kvm_control.get_kvm_arch() == 'kvm_intel'))
    self._mock_cpu_info('AuthenticAMD\nsvm')
    self.assertTrue((kvm_control.get_kvm_arch() == 'kvm_amd'))
    self._mock_cpu_info('POWER7')
    self.assertTrue((kvm_control.get_kvm_arch() == 'kvm_power7'))
    self._mock_cpu_info('AuthenticAMD')
    self.assertRaises(error.TestError, kvm_control.get_kvm_arch)
    self._mock_cpu_info('InvalidCPU')
    self.assertRaises(error.TestError, kvm_control.get_kvm_arch)
