def METHOD_NAME(self):
    """
    Test - remove kernel package
    """
    with patch.object(self._kernelpkg, "active", return_value=self.KERNEL_LIST[-1]):
        with patch.object(
            self._kernelpkg, "list_installed", return_value=self.KERNEL_LIST
        ):
            result = self._kernelpkg.remove(release=self.KERNEL_LIST[0])
            self.assertIn("removed", result)
            target = "{}-{}".format(
                self._kernelpkg._package_prefix(), self.KERNEL_LIST[0]
            )  # pylint: disable=protected-access
            self.assertListEqual(result["removed"], [target])