def test_root_equal_to_static_root_raises(self): conf = StaticPreprocessorAppConf() conf._meta.configured_data['ROOT'] = settings.STATIC_ROOT with self.assertRaises(ImproperlyConfigured): conf.configure()
def test_no_root_raises(self): conf = StaticPreprocessorAppConf() conf._meta.configured_data['ROOT'] = None with self.assertRaises(ImproperlyConfigured): conf.configure()