def test_delif(self): """ Test for Removes an interface from a bridge """ mock = MagicMock(return_value="A") with patch.object(bridge, "_os_dispatch", mock): self.assertEqual(bridge.delif(), "A")
def test_delif(self): ''' Test for Removes an interface from a bridge ''' mock = MagicMock(return_value='A') with patch.object(bridge, '_os_dispatch', mock): self.assertEqual(bridge.delif(), 'A')