Fix up tests

This commit is contained in:
Chuck Short
2011-03-17 10:41:55 -04:00
parent 5247e23382
commit 1decefaf64

View File

@@ -259,7 +259,7 @@ class LibvirtConnTestCase(test.TestCase):
check = [
(lambda t: t.find('.').get('type'), 'lxc'),
(lambda t: t.find('./os/type').text, 'exe'),
(lambda t: t.find('./os/type').text, 'exe')
]
for i, (check, expected_result) in enumerate(check):
@@ -342,7 +342,6 @@ class LibvirtConnTestCase(test.TestCase):
(lambda t: t.find('./devices/serial/source').get(
'path').split('/')[1], 'console.log'),
(lambda t: t.find('./memory').text, '2097152')]
if rescue:
common_checks += [
(lambda t: t.findall('./devices/disk/source')[0].get(