'Check number of cache load/save.
There should be one per overloaded version.'

def check_ufunc_cache(self, usecase_name, n_overloads, **kwargs):

    mod = self.import_module()
    usecase = getattr(mod, usecase_name)
    with self.capture_cache_log() as out:
        new_ufunc = usecase(**kwargs)
    cachelog = out.getvalue()
    self.check_cache_saved(cachelog, count=n_overloads)
    with self.capture_cache_log() as out:
        cached_ufunc = usecase(**kwargs)
    cachelog = out.getvalue()
    self.check_cache_loaded(cachelog, count=n_overloads)
    return (new_ufunc, cached_ufunc)
