

def test_update(self):
    request = Mock()
    request.return_value = (Mock(), {
        'sid': '123',
    })
    self.resource.request = request
    self.resource.update('123', friendly_name='hi')
    uri = 'http://api.twilio.com/Addresses/123'
    request.assert_called_with('POST', uri, data={
        'FriendlyName': 'hi',
    })

dataset/ETHPy150Open twilio/twilio-python/tests/test_addresses.py AddressesTest.test_update/original