File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from nose .tools import assert_equal
4
4
from twilio .jwt import decode
5
- from twilio .access_token import AccessToken , ConversationGrant , IpMessagingGrant
5
+ from twilio .access_token import AccessToken , ConversationsGrant , IpMessagingGrant
6
6
7
7
ACCOUNT_SID = 'AC123'
8
8
SIGNING_KEY_SID = 'SK123'
@@ -36,7 +36,7 @@ def test_empty_grants(self):
36
36
37
37
def test_conversations_grant (self ):
38
38
scat = AccessToken (ACCOUNT_SID , SIGNING_KEY_SID , 'secret' )
39
- scat .add_grant (ConversationGrant ())
39
+ scat .add_grant (ConversationsGrant ())
40
40
41
41
token = str (scat )
42
42
assert_is_not_none (token )
@@ -58,7 +58,7 @@ def test_ip_messaging_grant(self):
58
58
59
59
def test_grants (self ):
60
60
scat = AccessToken (ACCOUNT_SID , SIGNING_KEY_SID , 'secret' )
61
- scat .add_grant (ConversationGrant ())
61
+ scat .add_grant (ConversationsGrant ())
62
62
scat .add_grant (IpMessagingGrant ())
63
63
64
64
token = str (scat )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def to_payload(self):
28
28
return grant
29
29
30
30
31
- class ConversationGrant (object ):
31
+ class ConversationsGrant (object ):
32
32
def __init__ (self , configuration_profile_sid = None ):
33
33
self .configuration_profile_sid = configuration_profile_sid
34
34
You can’t perform that action at this time.
0 commit comments