def test_add(self): """ Test for Creates a bridge """ mock = MagicMock(return_value="A") with patch.object(bridge, "_os_dispatch", mock): self.assertEqual(bridge.add(), "A")
def test_add(self): ''' Test for Creates a bridge ''' mock = MagicMock(return_value='A') with patch.object(bridge, '_os_dispatch', mock): self.assertEqual(bridge.add(), 'A')