<s> from cachebot . models import ManyModel <EOL> from cachebot . tests . base_tests import BasicCacheTests , RelatedCacheTests <EOL> class BasicManyToManyCacheTests ( BasicCacheTests ) : <EOL> def setUp ( self ) : <EOL> BasicCacheTests . setUp ( self ) <EOL> self . manager = ManyModel . objects <EOL> self . func = self . manager . cache ( ) . filter <EOL> self . obj = self . manymodel <EOL> self . related_obj = self . firstmodel <EOL> self . kwargs = { '<STR_LIT:id>' : self . obj . id } <EOL> def test_lookup ( self ) : <EOL> self . _test_lookup ( ) <EOL> class RelatedManyToManyCacheTests ( RelatedCacheTests ) : <EOL> def setUp ( self ) : <EOL> RelatedCacheTests . setUp ( self ) <EOL> self . manager = ManyModel . objects <EOL> self . func = self . manager . cache ( ) . filter <EOL> self . obj = self . manymodel <EOL> self . related_obj = self . firstmodel <EOL> self . kwargs = { '<STR_LIT>' : self . related_obj } <EOL> def test_related_save_signal ( self ) : <EOL> pass <EOL> def test_related_delete_signal ( self ) : <EOL> self . _test_lookup ( ) <EOL> obj = self . related_obj <EOL> obj . text = "<STR_LIT>" <EOL> obj . delete ( ) <EOL> self . _test_cache_lookup ( from_cache = False ) </s>
