docstr: Test various items, keys, values and iterators of LRUCache.
docstr_tok: ["Test","various","items",",","keys",",","values","and","iterators","of","LRUCache","."]
code: def test_items(self):
      """Test various items, keys, values and iterators of LRUCache."""
      d = LRUCache(3)
      d["a"] = 1
      d["b"] = 2
      d["c"] = 3
      assert d.items() == [("c", 3), ("b", 2), ("a", 1)]
      assert d.keys() == ["c", "b", "a"]
      assert d.values() == [3, 2, 1]
      assert list(reversed(d)) == ["a", "b", "c"]
  
      # Change the cache a little
      d["b"]
      d["a"] = 4
      assert d.items() == [("a", 4), ("b", 2), ("c", 3)]
      assert d.keys() == ["a", "b", "c"]
      assert d.values() == [4, 2, 3]
      assert list(reversed(d)) == ["c", "b", "a"]
  
imports: import pickle
  import random
  from collections import deque
  from copy import copy
  import pytest
  from markupsafe import Markup
  from jinja2.utils import consume
  from jinja2.utils import generate_lorem_ipsum
  from jinja2.utils import LRUCache
  from jinja2.utils import missing
  from jinja2.utils import object_type_repr
  from jinja2.utils import select_autoescape
  from jinja2.utils import urlize
label_desc: Use image node_id 8 for calling the TestLRUCache obj's underlying member method code with example usage: obj.test_items() without return types