This commit is contained in:
Gareth J. Greenaway 2018-11-15 10:26:35 -08:00
parent 4f9eb95d7f
commit 4f30611c69
No known key found for this signature in database
GPG Key ID: 10B62F8A7CAD7A41

View File

@ -695,11 +695,11 @@ class CoreGrainsTestCase(TestCase, LoaderModuleMockMixin):
patch.object(os.path,
'isfile',
MagicMock(side_effect=lambda x: True if x == '/sys/bus/xen/drivers/xenconsole' else False)):
log.debug('Testing Xen')
self.assertEqual(
core._virtual({'kernel': 'Linux'}).get('virtual_subtype'),
'Xen PV DomU'
)
log.debug('Testing Xen')
self.assertEqual(
core._virtual({'kernel': 'Linux'}).get('virtual_subtype'),
'Xen PV DomU'
)
def _check_ipaddress(self, value, ip_v):
'''