Exemplo n.º 1
0
 def test_get_enabled_chunks_for_region_bad_models_loud_fail(self):
     blank_conf = EditRegionConfiguration()
     error = ImproperlyConfigured
     if is_django_17plus():
         error = LookupError
     with self.assertRaises(error):
         blank_conf.get_enabled_chunks_for_region({"x.Y": 1})
Exemplo n.º 2
0
 def test_is_less_than_17(self):
     self.assertFalse(is_django_17plus())
Exemplo n.º 3
0
 def test_is_at_least_17(self):
     self.assertTrue(is_django_17plus())