We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dd329d commit d7f6d22Copy full SHA for d7f6d22
tests/test_credentials.py
@@ -4,10 +4,12 @@
4
from twilio import TwilioException
5
from twilio.rest import TwilioRestClient, find_credentials
6
7
+
8
def test_creds_not_found():
9
""" I shouldn't find credentials if they are not there """
10
assert_equal(find_credentials({'foo': 'bar'}), (None, None))
11
12
13
def test_find_creds():
14
""" I should find the credentials if they are there """
15
env = {
@@ -17,6 +19,7 @@ def test_find_creds():
17
19
}
18
20
assert_equal(find_credentials(env), ('AC123', '456'))
21
22
23
@patch("twilio.rest.find_credentials")
24
def test_creds_error(creds):
25
creds.return_value = (None, None)
0 commit comments