Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e6859d

Browse files
author
Doug Black
committed
Make python generate-able
- Remove edge code. - Remove errant whitespace.
1 parent 35401ce commit 5e6859d

File tree

322 files changed

+11900
-14581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

322 files changed

+11900
-14581
lines changed

tests/integration/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
This code was generated by
44
\ / _ _ _| _ _
55
| (_)\/(_)(_|\/| |(/_ v1.0.0
6-
/ /
6+
/ /
77
"""
88

tests/integration/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
This code was generated by
44
\ / _ _ _| _ _
55
| (_)\/(_)(_|\/| |(/_ v1.0.0
6-
/ /
6+
/ /
77
"""
88

tests/integration/api/v2010/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
This code was generated by
44
\ / _ _ _| _ _
55
| (_)\/(_)(_|\/| |(/_ v1.0.0
6-
/ /
6+
/ /
77
"""
88

tests/integration/api/v2010/account/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
This code was generated by
44
\ / _ _ _| _ _
55
| (_)\/(_)(_|\/| |(/_ v1.0.0
6-
/ /
6+
/ /
77
"""
88

tests/integration/api/v2010/account/address/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
This code was generated by
44
\ / _ _ _| _ _
55
| (_)\/(_)(_|\/| |(/_ v1.0.0
6-
/ /
6+
/ /
77
"""
88

tests/integration/api/v2010/account/address/test_dependent_phone_number.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This code was generated by
44
\ / _ _ _| _ _
55
| (_)\/(_)(_|\/| |(/_ v1.0.0
6-
/ /
6+
/ /
77
"""
88

99
from tests import IntegrationTestCase
@@ -16,12 +16,12 @@ class DependentPhoneNumberTestCase(IntegrationTestCase):
1616

1717
def test_list_request(self):
1818
self.holodeck.mock(Response(500, ''))
19-
19+
2020
with self.assertRaises(TwilioException):
2121
self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
2222
.addresses(sid="ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
2323
.dependent_phone_numbers.list()
24-
24+
2525
self.holodeck.assert_has_request(Request(
2626
'get',
2727
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DependentPhoneNumbers.json',
@@ -60,11 +60,11 @@ def test_read_full_response(self):
6060
}
6161
'''
6262
))
63-
63+
6464
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
6565
.addresses(sid="ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
6666
.dependent_phone_numbers.list()
67-
67+
6868
self.assertIsNotNone(actual)
6969

7070
def test_read_empty_response(self):
@@ -82,9 +82,9 @@ def test_read_empty_response(self):
8282
}
8383
'''
8484
))
85-
85+
8686
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
8787
.addresses(sid="ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
8888
.dependent_phone_numbers.list()
89-
89+
9090
self.assertIsNotNone(actual)

tests/integration/api/v2010/account/available_phone_number/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
This code was generated by
44
\ / _ _ _| _ _
55
| (_)\/(_)(_|\/| |(/_ v1.0.0
6-
/ /
6+
/ /
77
"""
88

tests/integration/api/v2010/account/available_phone_number/test_local.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This code was generated by
44
\ / _ _ _| _ _
55
| (_)\/(_)(_|\/| |(/_ v1.0.0
6-
/ /
6+
/ /
77
"""
88

99
from tests import IntegrationTestCase
@@ -16,12 +16,12 @@ class LocalTestCase(IntegrationTestCase):
1616

1717
def test_list_request(self):
1818
self.holodeck.mock(Response(500, ''))
19-
19+
2020
with self.assertRaises(TwilioException):
2121
self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
2222
.available_phone_numbers(country_code="US") \
2323
.local.list()
24-
24+
2525
self.holodeck.assert_has_request(Request(
2626
'get',
2727
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/Local.json',
@@ -66,11 +66,11 @@ def test_read_full_response(self):
6666
}
6767
'''
6868
))
69-
69+
7070
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
7171
.available_phone_numbers(country_code="US") \
7272
.local.list()
73-
73+
7474
self.assertIsNotNone(actual)
7575

7676
def test_read_empty_response(self):
@@ -92,9 +92,9 @@ def test_read_empty_response(self):
9292
}
9393
'''
9494
))
95-
95+
9696
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
9797
.available_phone_numbers(country_code="US") \
9898
.local.list()
99-
99+
100100
self.assertIsNotNone(actual)

tests/integration/api/v2010/account/available_phone_number/test_mobile.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This code was generated by
44
\ / _ _ _| _ _
55
| (_)\/(_)(_|\/| |(/_ v1.0.0
6-
/ /
6+
/ /
77
"""
88

99
from tests import IntegrationTestCase
@@ -16,12 +16,12 @@ class MobileTestCase(IntegrationTestCase):
1616

1717
def test_list_request(self):
1818
self.holodeck.mock(Response(500, ''))
19-
19+
2020
with self.assertRaises(TwilioException):
2121
self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
2222
.available_phone_numbers(country_code="US") \
2323
.mobile.list()
24-
24+
2525
self.holodeck.assert_has_request(Request(
2626
'get',
2727
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/Mobile.json',
@@ -65,11 +65,11 @@ def test_read_full_response(self):
6565
}
6666
'''
6767
))
68-
68+
6969
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
7070
.available_phone_numbers(country_code="US") \
7171
.mobile.list()
72-
72+
7373
self.assertIsNotNone(actual)
7474

7575
def test_read_empty_response(self):
@@ -91,9 +91,9 @@ def test_read_empty_response(self):
9191
}
9292
'''
9393
))
94-
94+
9595
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
9696
.available_phone_numbers(country_code="US") \
9797
.mobile.list()
98-
98+
9999
self.assertIsNotNone(actual)

tests/integration/api/v2010/account/available_phone_number/test_toll_free.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This code was generated by
44
\ / _ _ _| _ _
55
| (_)\/(_)(_|\/| |(/_ v1.0.0
6-
/ /
6+
/ /
77
"""
88

99
from tests import IntegrationTestCase
@@ -16,12 +16,12 @@ class TollFreeTestCase(IntegrationTestCase):
1616

1717
def test_list_request(self):
1818
self.holodeck.mock(Response(500, ''))
19-
19+
2020
with self.assertRaises(TwilioException):
2121
self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
2222
.available_phone_numbers(country_code="US") \
2323
.toll_free.list()
24-
24+
2525
self.holodeck.assert_has_request(Request(
2626
'get',
2727
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers/US/TollFree.json',
@@ -65,11 +65,11 @@ def test_read_full_response(self):
6565
}
6666
'''
6767
))
68-
68+
6969
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
7070
.available_phone_numbers(country_code="US") \
7171
.toll_free.list()
72-
72+
7373
self.assertIsNotNone(actual)
7474

7575
def test_read_empty_response(self):
@@ -91,9 +91,9 @@ def test_read_empty_response(self):
9191
}
9292
'''
9393
))
94-
94+
9595
actual = self.client.api.v2010.accounts(sid="ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
9696
.available_phone_numbers(country_code="US") \
9797
.toll_free.list()
98-
98+
9999
self.assertIsNotNone(actual)

0 commit comments

Comments
 (0)