cubicweb #2447183 testlib: rset is not considered for template selection in tests [validation pending]

In CubicWebTC, the view test method doesn't use the rset object correctly to select the template. This is actually a problem of lambda and nested scope.

prioritynormal
typebug
done in3.15.3
load0.100
load left0.000
closed by#7f71e366cb5e [testlib] consider rset for template / view selection (closes #2447183)