8000 python 2.6 test compatibility · Twilio-api/twilio-python@6279271 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6279271

Browse files
author
Kevin Burke
committed
python 2.6 test compatibility
1 parent 052c290 commit 6279271

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/test_authorized_connect_apps.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,10 @@ def test_load(self):
5555
assert_equal(instance.company_name, "bar")
5656

5757
def test_delete(self):
58-
with self.assertRaises(AttributeError):
59-
self.resource.delete()
58+
self.assertRaises(AttributeError, getattr, self.resource, 'delete')
6059

6160
def test_create(self):
62-
with self.assertRaises(AttributeError):
63-
self.resource.create()
61+
self.assertRaises(AttributeError, getattr, self.resource, 'create')
6462

6563
def test_update(self):
66-
with self.assertRaises(AttributeError):
67-
self.resource.update()
64+
self.assertRaises(AttributeError, getattr, self.resource, 'update')

0 commit comments

Comments
 (0)
0