Ejemplo n.º 1
0
def test_find_creds():
    """ I should find the credentials if they are there """
    env = {
        'TWILIO_ACCOUNT_SID': 'AC123',
        'foo': 'bar',
        'TWILIO_AUTH_TOKEN': '456',
    }
    assert_equal(find_credentials(env), ('AC123', '456'))
Ejemplo n.º 2
0
def test_find_creds():
    """ I should find the credentials if they are there """
    env = {
        'TWILIO_ACCOUNT_SID': 'AC123',
        'foo': 'bar',
        'TWILIO_AUTH_TOKEN': '456',
    }
    assert_equal(find_credentials(env), ('AC123', '456'))
Ejemplo n.º 3
0
def test_creds_not_found():
    """ I shouldn't find credentials if they are not there """
    assert_equal(find_credentials({"foo": "bar"}), (None, None))
Ejemplo n.º 4
0
def test_find_creds():
    """ I should find the credentials if they are there """
    env = {"TWILIO_ACCOUNT_SID": "AC123", "foo": "bar", "TWILIO_AUTH_TOKEN": "456"}
    assert_equal(find_credentials(env), ("AC123", "456"))
Ejemplo n.º 5
0
def test_creds_not_found():
    """ I shouldn't find credentials if they are not there """
    assert_equal(find_credentials({'foo': 'bar'}), (None, None))