Add functional test for device_exists() with invalid namespace
This should return False, and not throw an exception because the namespace doesn't exist. Change-Id: I5f787b12abc156452bceed7fae43598980a3a93c
This commit is contained in:
parent
7fe5d1597a
commit
0bf1f96369
|
@ -103,6 +103,9 @@ class IpLibTestCase(IpLibTestFramework):
|
|||
self.assertTrue(
|
||||
ip_lib.device_exists(device.name, namespace=attr.namespace))
|
||||
|
||||
self.assertFalse(
|
||||
ip_lib.device_exists(attr.name, namespace='wrong_namespace'))
|
||||
|
||||
device.link.delete()
|
||||
|
||||
self.assertFalse(
|
||||
|
|
Loading…
Reference in New Issue