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:
Brian Haley 2016-04-12 16:21:30 -04:00
parent 7fe5d1597a
commit 0bf1f96369
1 changed files with 3 additions and 0 deletions

View File

@ -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(