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
def test_write_credential_check():
    c = credential.Credential(SORT_KEY)
    status = c.check('write')
    assert status is True
def test_object_instiation():
    c = credential.Credential(SORT_KEY)
    print("setting up %s" % SORT_KEY)
    assert c.sort_key is SORT_KEY
def test_read_credential_check():
    c = credential.Credential(SORT_KEY)
    status = c.check('read')
    assert status is True