Пример #1
0
def test_write_credential():
    c = credential.Credential(SORT_KEY)
    this_credential = c.get_write()
    print this_credential
    assert this_credential is not None
    assert this_credential['SecretAccessKey'] is not None
    assert this_credential['AccessKeyId'] is not None
    assert this_credential['SessionToken'] is not None
    assert this_credential['Expiration'] is not None
Пример #2
0
def test_write_credential_check():
    c = credential.Credential(SORT_KEY)
    status = c.check('write')
    assert status is True
Пример #3
0
def test_object_instiation():
    c = credential.Credential(SORT_KEY)
    print("setting up %s" % SORT_KEY)
    assert c.sort_key is SORT_KEY
Пример #4
0
def test_read_credential_check():
    c = credential.Credential(SORT_KEY)
    status = c.check('read')
    assert status is True