def METHOD_NAME(self, importlib_mock):
    ctx = Mock()
    ctx.obj = Mock()
    cmd = BaseCommand(cmd_packages=self.packages)
    importlib_mock.import_module = Mock()
    importlib_mock.import_module.side_effect = ImportError()
    result = cmd.get_command(ctx, "cmd1")
    self.assertEqual(result, None, "must not return a command")