class documentation

class TestLRUCache(TestCase):

View In Hierarchy

Test that LRU cache properly keeps track of entries.

Method test_add__null_key Undocumented
Method test_after_cleanup_larger_than_max Undocumented
Method test_after_cleanup_none Undocumented
Method test_by_usage Accessing entries bumps them up in priority.
Method test_cache_size Undocumented
Method test_cleanup Test that we can use a cleanup function.
Method test_cleanup_2 Undocumented
Method test_cleanup_on_replace Replacing an object should cleanup the old value.
Method test_cleanup_shrinks_to_after_clean_count Undocumented
Method test_get Undocumented
Method test_keys Undocumented
Method test_len Undocumented
Method test_map_None Undocumented
Method test_missing Undocumented
Method test_overflow Adding extra entries will pop out old ones.
Method test_preserve_last_access_order Undocumented
Method test_resize_larger Undocumented
Method test_resize_smaller Undocumented

Inherited from TestCase:

Method overrideEnv Undocumented
Method setUp Undocumented
def test_add__null_key(self):

Undocumented

def test_after_cleanup_larger_than_max(self):

Undocumented

def test_after_cleanup_none(self):

Undocumented

def test_by_usage(self):

Accessing entries bumps them up in priority.

def test_cache_size(self):

Undocumented

def test_cleanup(self):

Test that we can use a cleanup function.

def test_cleanup_2(self):

Undocumented

def test_cleanup_on_replace(self):

Replacing an object should cleanup the old value.

def test_cleanup_shrinks_to_after_clean_count(self):

Undocumented

def test_get(self):

Undocumented

def test_keys(self):

Undocumented

def test_len(self):

Undocumented

def test_map_None(self):

Undocumented

def test_missing(self):

Undocumented

def test_overflow(self):

Adding extra entries will pop out old ones.

def test_preserve_last_access_order(self):

Undocumented

def test_resize_larger(self):

Undocumented

def test_resize_smaller(self):

Undocumented