mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
tests: capabilities: Fix coverage after string changes
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
748bb7d774
commit
2d8c1c5ab9
@ -6,6 +6,8 @@
|
||||
import os
|
||||
import unittest
|
||||
|
||||
import pytest
|
||||
|
||||
from tests import utils
|
||||
|
||||
from virtinst import Capabilities
|
||||
@ -52,8 +54,10 @@ class TestCapabilities(unittest.TestCase):
|
||||
test_utils(caps_no_kvm, True, False)
|
||||
|
||||
# Small test for extra unittest coverage
|
||||
with self.assertRaises(ValueError):
|
||||
with pytest.raises(ValueError, match=r".*virtualization type 'xen'.*"):
|
||||
caps_empty.guest_lookup(os_type="linux")
|
||||
with pytest.raises(ValueError, match=r".*not support any.*"):
|
||||
caps_empty.guest_lookup()
|
||||
|
||||
def testCapsNuma(self):
|
||||
cells = self._buildCaps("lxc.xml").host.topology.cells
|
||||
|
Loading…
Reference in New Issue
Block a user