def test_str(self): error = admin_plugin.CommandNotFoundError("scale") self.assertEqual('command "scale" not found', str(error))
def test_unicode(self): error = admin_plugin.CommandNotFoundError("scale") self.assertEqual(u'command "scale" not found', unicode(error))
def test_init(self): error = admin_plugin.CommandNotFoundError("scale") self.assertEqual(("scale",), error.args) self.assertEqual("scale", error.name)