示例#1
0
 def test_str(self):
     error = admin_plugin.CommandNotFoundError("scale")
     self.assertEqual('command "scale" not found', str(error))
示例#2
0
 def test_unicode(self):
     error = admin_plugin.CommandNotFoundError("scale")
     self.assertEqual(u'command "scale" not found', unicode(error))
示例#3
0
 def test_init(self):
     error = admin_plugin.CommandNotFoundError("scale")
     self.assertEqual(("scale",), error.args)
     self.assertEqual("scale", error.name)