

def test_dependent_phone_numbers(self):
    pn_list = DependentPhoneNumbers('http://api.twilio.com/mock', ('user', 'pass'))
    request = Mock()
    request.return_value = (Mock(), {
        'dependent_phone_numbers': [{
            'sid': 'PN123',
        }],
        'total': 1,
        'page': 0,
        'page_size': 50,
    })
    pn_list.request = request
    result = pn_list.list()
    request.assert_called_with('GET', 'http://api.twilio.com/mock/DependentPhoneNumbers', params={
        
    })
    assert_equal(result[0].sid, 'PN123')

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