def METHOD_NAME(self, mock_exists, mock_Command_run):
    self.rpmdb.rpmdb_image.expand_query.return_value = \
        '/var/lib/rpm'
    self.rpmdb.rpmdb_host.expand_query.return_value = \
        '/usr/lib/sysimage/rpm'
    mock_exists.return_value = False
    self.rpmdb.link_database_to_host_path()
    assert mock_Command_run.call_args_list == [
        call(['mkdir', '-p', 'root_dir/usr/lib/sysimage']),
        call(
            [
                'ln', '-s', '../../../var/lib/rpm',
                'root_dir/usr/lib/sysimage/rpm'
            ]
        )
    ]