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