Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)

src/d/j/django-cachebot-0.4.1/cachebot/tests/many_to_many_tests.py   django-cachebot(Download)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = ManyModel.objects
        self.func = self.manager.cache().filter
        self.obj = self.manymodel

src/d/j/django-cachebot-HEAD/cachebot/tests/many_to_many_tests.py   django-cachebot(Download)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = ManyModel.objects
        self.func = self.manager.cache().filter
        self.obj = self.manymodel

src/d/j/django-cachebot-0.4.1/cachebot/tests/values_tests.py   django-cachebot(Download)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = ThirdModel.objects.cache().values()
        self.func = self.manager.filter
 
 
class ValuesRelatedCacheTests2(RelatedCacheTests):
 
    def setUp(self):
        RelatedCacheTests.setUp(self)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = ThirdModel.objects.cache().values('text','obj__text')
        self.func = self.manager.filter
 
 
class ValuesRelatedCacheTests4(RelatedCacheTests):
 
    def setUp(self):
        RelatedCacheTests.setUp(self)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = ThirdModel.objects.values('text','obj__text')
        self.func = self.manager.filter
        self.append_cache = True

src/d/j/django-cachebot-HEAD/cachebot/tests/values_tests.py   django-cachebot(Download)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = ThirdModel.objects.cache().values()
        self.func = self.manager.filter
 
 
class ValuesRelatedCacheTests2(RelatedCacheTests):
 
    def setUp(self):
        RelatedCacheTests.setUp(self)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = ThirdModel.objects.cache().values('text','obj__text')
        self.func = self.manager.filter
 
 
class ValuesRelatedCacheTests4(RelatedCacheTests):
 
    def setUp(self):
        RelatedCacheTests.setUp(self)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = ThirdModel.objects.values('text','obj__text')
        self.func = self.manager.filter
        self.append_cache = True

src/d/j/django-cachebot-0.4.1/cachebot/tests/reverse_lookup_tests.py   django-cachebot(Download)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = FirstModel.objects
        self.func = self.manager.cache().filter
        self.obj = self.secondmodel
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = FirstModel.objects
        self.func = self.manager.cache().values().filter
        self.obj = self.secondmodel

src/d/j/django-cachebot-HEAD/cachebot/tests/reverse_lookup_tests.py   django-cachebot(Download)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = FirstModel.objects
        self.func = self.manager.cache().filter
        self.obj = self.secondmodel
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.manager = FirstModel.objects
        self.func = self.manager.cache().values().filter
        self.obj = self.secondmodel

src/d/j/django-cachebot-HEAD/cachebot/tests/manager_tests.py   django-cachebot(Download)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.func = self.manager.get
 
 

src/d/j/django-cachebot-0.4.1/cachebot/tests/manager_tests.py   django-cachebot(Download)
    def setUp(self):
        RelatedCacheTests.setUp(self)
        self.func = self.manager.get