def test_create(): val = '1st string to write.' result = DB.create(PREFIX, 'create', val) return assert_equals(result, val)
def test_create_ttl(): val = '2nd string to write.' result = DB.create(PREFIX, 'ttl', val, 1) return assert_equals(result, val)
def test_exists_present(): DB.create(PREFIX, 'present', 'ok') result = DB.exists(PREFIX, 'present') return assert_equals(result, True)