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