def METHOD_NAME(self):
    self.rpmdb.set_database_to_host_path()
    self.rpmdb.rpmdb_image.set_config_value.assert_called_once_with(
        '_dbpath', self.rpmdb.rpmdb_host.get_query.return_value
    )
    self.rpmdb.rpmdb_image.write_config.assert_called_once_with()
    self.rpmdb.rpmdb_host.get_query.assert_called_once_with('_dbpath')