Removed invalid test due to invalid mocking

Removed the test_get_device_by_ip_exception
because get_devices cannot throw an OSError.

Change-Id: Ibe2841de89acc7e90582fbe440fedb270a404729
This commit is contained in:
Martin Roy 2016-05-16 13:59:11 -04:00
parent 26d396d9a2
commit 0f29fb44a7
1 changed files with 0 additions and 7 deletions

View File

@ -37,13 +37,6 @@ class TestIpWrapper(base.BaseTestCase):
self.assertEqual(mock_dev2, ret)
@mock.patch.object(ip_lib.IPWrapper, 'get_devices')
def test_get_device_by_ip_exception(self, mock_get_devices):
mock_get_devices.side_effects = OSError
ret = ip_lib.IPWrapper().get_device_by_ip(mock.sentinel.fake_ip)
self.assertIsNone(ret)
@mock.patch('netifaces.interfaces')
def test_get_devices(self, mock_interfaces):
mock_interfaces.return_value = [mock.sentinel.dev1,