1- from mock import Mock , patch
1+ from mock import patch
22
33from nose .tools import assert_equal
44
99AUTH = ('AC123' , 'foobar' )
1010TIMEOUT = 30
1111
12+
1213@patch ("twilio.rest.resources.base.make_twilio_request" )
1314def test_get_phone_number (request ):
14- resp = create_mock_json ("tests/resources/lookups/phone_number_instance.json" )
15+ resp = create_mock_json (
16+ "tests/resources/lookups/phone_number_instance.json" ,
17+ )
1518 request .return_value = resp
1619
1720 phone_numbers = PhoneNumbers ('/v1' , AUTH , TIMEOUT )
@@ -24,7 +27,9 @@ def test_get_phone_number(request):
2427
2528@patch ("twilio.rest.resources.base.make_twilio_request" )
2629def test_get_carrier_info (request ):
27- resp = create_mock_json ("tests/resources/lookups/phone_number_instance.json" )
30+ resp = create_mock_json (
31+ "tests/resources/lookups/phone_number_instance.json" ,
32+ )
2833 request .return_value = resp
2934
3035 phone_numbers = PhoneNumbers ('/v1' , AUTH , TIMEOUT )
@@ -38,7 +43,9 @@ def test_get_carrier_info(request):
3843
3944@patch ("twilio.rest.resources.base.make_twilio_request" )
4045def test_get_with_country_code (request ):
41- resp = create_mock_json ("tests/resources/lookups/phone_number_instance.json" )
46+ resp = create_mock_json (
47+ "tests/resources/lookups/phone_number_instance.json" ,
48+ )
4249 request .return_value = resp
4350
4451 phone_numbers = PhoneNumbers ('/v1' , AUTH , TIMEOUT )
0 commit comments