def METHOD_NAME():
    """Test access right embargo."""
    assert AccessRight.get(AccessRight.OPEN) == 'open'
    assert AccessRight.get(AccessRight.EMBARGOED) == 'embargoed'
    # Embargo just lifted today.
    today = datetime.utcnow().date()
    assert AccessRight.get(
        AccessRight.EMBARGOED, embargo_date=today) == 'open'
    # Future embargo date.
    assert AccessRight.get(
        AccessRight.EMBARGOED, embargo_date=today+timedelta(days=1)) \
        == 'embargoed'
    # Should work with strings as well
    assert AccessRight.get(
        AccessRight.EMBARGOED, embargo_date='1253-01-01') == AccessRight.OPEN
    assert AccessRight.get(
        AccessRight.EMBARGOED,
        embargo_date=str(today+timedelta(days=1))) == AccessRight.EMBARGOED