def setUp(self): self.old_models = conf.MODELS conf.MODELS = { 'u': 'shorturl.URL', 'p': 'shorturl.Person', } conf.set_prefixes(conf.MODELS)
def tearDown(self): if self.old_models is not None: conf.MODELS = self.old_models conf.set_prefixes(self.old_models)
def setUp(self): self.old_models = conf.MODELS conf.MODELS = {"u": "shorturl.URL"} conf.set_prefixes(conf.MODELS)