示例#1
0
 def test_get_reform_model(self):
     common.get_reform_model(self.options('image.Reform'))
示例#2
0
 def test_get_reform_model_nonreform_fails(self):
     with self.assertRaises(CommandError):
         common.get_reform_model(self.options('image.Image'))
示例#3
0
 def test_get_reform_model_nonexistence_fails(self):
     with self.assertRaises(CommandError):
         common.get_reform_model(self.options('woozy.Perception'))
示例#4
0
 def test_get_reform_model_longpath_fails(self):
     with self.assertRaises(CommandError):
         common.get_reform_model(self.options('django.image.Reform'))
示例#5
0
 def test_get_reform_model_shortpath_fails(self):
     with self.assertRaises(CommandError):
         common.get_reform_model(self.options('Reform'))
示例#6
0
 def test_get_reform_model_default(self):
     image_model = common.get_reform_model(self.options(''))
     self.assertEqual(image_model, Reform)