def test_prime_cache(self): factories.ContrabandFactory() factories.ContrabandFactory() factories.ContrabandFactory() factories.ContrabandFactory() factories.ContrabandFactory() run()
def handle(self, *args, **options): cutoff = float(options['cutoff']) if options['cutoff'] else None prime_cache.run(cutoff_duration_secs=cutoff)
def handle(self, *args, **options): url = None if len(args) == 1: url = args[0] prime_cache.run(url)