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

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/d/j/django-configstore-HEAD/configstore/tests.py   django-configstore(Download)
 
from models import Configuration
from listeners import nuke_cache
 
from decimal import Decimal
        self.assertNotEqual(0, len(get_config('testcomplex').items()))
        self.assertNotEqual(0, len(lazydictionary_post.items()))
        nuke_cache()
        config = get_config('testcomplex')
        self.assertTrue(isinstance(config['amount'], Decimal))
    def test_nuke_cache(self):
        my_config = get_config('test')
        my_config._load()
        nuke_cache()
        self.assertFalse(hasattr(my_config.data, 'config'))

src/d/j/django-configstore-0.3/configstore/tests.py   django-configstore(Download)
 
from models import Configuration
from listeners import nuke_cache
 
from decimal import Decimal
        self.assertNotEqual(0, len(get_config('testcomplex').items()))
        self.assertNotEqual(0, len(lazydictionary_post.items()))
        nuke_cache()
        config = get_config('testcomplex')
        self.assertTrue(isinstance(config['amount'], Decimal))
    def test_nuke_cache(self):
        my_config = get_config('test')
        my_config._load()
        nuke_cache()
        self.assertFalse(hasattr(my_config.data, 'config'))