def test_addif(self): """ Test for Adds an interface to a bridge """ mock = MagicMock(return_value="A") with patch.object(bridge, "_os_dispatch", mock): self.assertEqual(bridge.addif(), "A")
def test_addif(self): ''' Test for Adds an interface to a bridge ''' mock = MagicMock(return_value='A') with patch.object(bridge, '_os_dispatch', mock): self.assertEqual(bridge.addif(), 'A')