Refactor documentation structure and improve validation checks; update VM state handling and error management.
This commit is contained in:
@@ -396,7 +396,7 @@ class NetworkManagerTests(unittest.TestCase):
|
||||
self.runner.links = {self.vm.tap: {**self.tap_link, "linkinfo": info}}
|
||||
self.runner.calls.clear()
|
||||
self.vm.tap_owned = True
|
||||
with self.assertRaises(UvmError):
|
||||
with self.assertRaises(ConflictError):
|
||||
getattr(self.network, operation)(self.vm)
|
||||
self.assertEqual(self.runner.calls, [LINK_INVENTORY])
|
||||
self.assertIs(self.vm.tap_owned, True)
|
||||
|
||||
Reference in New Issue
Block a user