def METHOD_NAME(self, mock_rpm):
    mock_rpm.return_value = mock.Mock()
    self.manager.clean_leftovers()
    mock_rpm.assert_called_once_with(
        '/root-dir', 'macros.kiwi-image-config'
    )
    mock_rpm.return_value.wipe_config.assert_called_once_with()