def test_get_reform_model(self): common.get_reform_model(self.options('image.Reform'))
def test_get_reform_model_nonreform_fails(self): with self.assertRaises(CommandError): common.get_reform_model(self.options('image.Image'))
def test_get_reform_model_nonexistence_fails(self): with self.assertRaises(CommandError): common.get_reform_model(self.options('woozy.Perception'))
def test_get_reform_model_longpath_fails(self): with self.assertRaises(CommandError): common.get_reform_model(self.options('django.image.Reform'))
def test_get_reform_model_shortpath_fails(self): with self.assertRaises(CommandError): common.get_reform_model(self.options('Reform'))
def test_get_reform_model_default(self): image_model = common.get_reform_model(self.options('')) self.assertEqual(image_model, Reform)