<s> from cachebot . models import FirstModel <EOL> from cachebot . tests . base_tests import RelatedCacheTests , ExtraRelatedCacheTests <EOL> class ReverseRelatedCacheTests ( RelatedCacheTests ) : <EOL> def setUp ( self ) : <EOL> RelatedCacheTests . setUp ( self ) <EOL> self . manager = FirstModel . objects <EOL> self . func = self . manager . cache ( ) . filter <EOL> self . obj = self . secondmodel <EOL> self . kwargs = { '<STR_LIT>' : self . obj } <EOL> def test_related_new_obj ( self ) : <EOL> kwargs = { '<STR_LIT>' : self . secondmodel . text } <EOL> self . test_new_obj ( obj = self . secondmodel , kwargs = kwargs ) <EOL> class ReverseExtraRelatedCacheTests ( ReverseRelatedCacheTests , ExtraRelatedCacheTests ) : <EOL> def setUp ( self ) : <EOL> ExtraRelatedCacheTests . setUp ( self ) <EOL> self . manager = FirstModel . objects <EOL> self . func = self . manager . cache ( ) . filter <EOL> self . obj = self . thirdmodel <EOL> self . kwargs = { '<STR_LIT>' : self . obj } <EOL> def test_extra_related_new_obj ( self ) : <EOL> kwargs = { '<STR_LIT>' : self . thirdmodel . text } <EOL> self . test_new_obj ( obj = self . thirdmodel , kwargs = kwargs ) <EOL> class ReverseRelatedValuesCacheTests ( ReverseRelatedCacheTests , RelatedCacheTests ) : <EOL> def setUp ( self ) : <EOL> RelatedCacheTests . setUp ( self ) <EOL> self . manager = FirstModel . objects <EOL> self . func = self . manager . cache ( ) . values ( ) . filter <EOL> self . obj = self . secondmodel <EOL> self . kwargs = { '<STR_LIT>' : self . obj } <EOL> class ReverseExtraRelatedValuesCacheTests ( ReverseExtraRelatedCacheTests , ExtraRelatedCacheTests ) : <EOL> def setUp ( self ) : <EOL> ExtraRelatedCacheTests . setUp ( self ) <EOL> self . manager = FirstModel . objects <EOL> self . func = self . manager . cache ( ) . values ( ) . filter <EOL> self . obj = self . thirdmodel <EOL> self . kwargs = { '<STR_LIT>' : self . obj } <EOL> class ReverseExtraRelatedExcludeCacheTests ( ReverseRelatedCacheTests , ExtraRelatedCacheTests ) : <EOL> def setUp ( self ) : <EOL> ExtraRelatedCacheTests . setUp ( self ) <EOL> self . manager = FirstModel . objects <EOL> self . func = self . manager . cache ( ) . exclude ( secondmodel__thirdmodel__id = <NUM_LIT> ) . filter <EOL> self . obj = self . thirdmodel <EOL> self . kwargs = { '<STR_LIT>' : self . obj } <EOL> def test_extra_related_new_obj ( self ) : <EOL> pass </s>
