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)
def test_get_command(self): cmd = plugin.get_command("scale") self.assertEqual(plugin.scale, cmd)