44415c5 cache_req tests: reduce code duplication

1 file Authored by pbrezina 8 years ago, Committed by jhrozek 8 years ago,
    cache_req tests: reduce code duplication
    
    Reviewed-by: Sumit Bose <sbose@redhat.com>
    (cherry picked from commit 3688374991afb34bbaf2b7843683fc13dd77879d)