Beispiel #1
0
 def test_get_command_not_found(self):
     with self.assertRaises(plugin.CommandNotFoundError) as cm:
         plugin.get_command("something i don't know")
     exc = cm.exception
     self.assertEqual("something i don't know", exc.name)
Beispiel #2
0
 def test_get_command_not_found(self):
     with self.assertRaises(plugin.CommandNotFoundError) as cm:
         plugin.get_command("something i don't know")
     exc = cm.exception
     self.assertEqual("something i don't know", exc.name)
Beispiel #3
0
 def test_get_command(self):
     cmd = plugin.get_command("scale")
     self.assertEqual(plugin.scale, cmd)
Beispiel #4
0
 def test_get_command(self):
     cmd = plugin.get_command("scale")
     self.assertEqual(plugin.scale, cmd)