Templatized test assertions