add helper function to make amp-consent test cleaner (#17847)
add helper function to make amp-consent test cleaner (#17847)


src-code/amphtml,chaveznvg/amphtml,adup-tech/amphtml,tlong2/amphtml,danielrozenberg/amphtml,pedjoni8/amphtml,zhangsu/amphtml,yieldbot/amphtml,cvializ/amphtml,honeybadgerdontcare/amphtml,voyagegroup/amphtml,laterpay/amphtml,techhtml/amphtml,cory-work/amphtml,pedjoni8/amphtml,sharethrough/amphtml,erwinmombay/amphtml,Gregable/amphtml,jmadler/amphtml,tlong2/amphtml,zhangsu/amphtml,sebastianbenz/amphtml,cory-work/amphtml,chaveznvg/amphtml,alanorozco/amphtml,laterpay/amphtml,chaveznvg/amphtml,erwinmombay/amphtml,erwinmombay/amphtml,media-net/amphtml,smartadserver/amphtml,prateekbh/amphtml,sebastianbenz/amphtml,lannka/amphtml,BenDz/amphtml,ampproject/amphtml,laterpay/amphtml,laterpay/amphtml,lannka/amphtml,mhc-gh/amphtml,jpettitt/amphtml,koshka/amphtml,voyagegroup/amphtml,rsimha-amp/amphtml,rsimha-amp/amphtml,prateekbh/amphtml,tlong2/amphtml,danielrozenberg/amphtml,ampproject/amphtml,jridgewell/amphtml,lannka/amphtml,media-net/amphtml,kamtschatka/amphtml,sharethrough/amphtml,mhc-gh/amphtml,smartadserver/amphtml,voyagegroup/amphtml,techhtml/amphtml,smartadserver/amphtml,lannka/amphtml,mhc-gh/amphtml,kamtschatka/amphtml,jridgewell/amphtml,prateekbh/amphtml,prateekbh/amphtml,cory-work/amphtml,jmadler/amphtml,pedjoni8/amphtml,lannka/amphtml,nexxtv/amphtml,lannka/amphtml,dotandads/amphtml,adup-tech/amphtml,sebastianbenz/amphtml,pedjoni8/amphtml,danielrozenberg/amphtml,erwinmombay/amphtml,sharethrough/amphtml,yandex-pcode/amphtml,media-net/amphtml,yieldbot/amphtml,src-code/amphtml,prateekbh/amphtml,kamtschatka/amphtml,prateekbh/amphtml,jpettitt/amphtml,techhtml/amphtml,nexxtv/amphtml,src-code/amphtml,yandex-pcode/amphtml,zhangsu/amphtml,zhouyx/amphtml,zhangsu/amphtml,rsimha-amp/amphtml,ampproject/amphtml,Gregable/amphtml,kamtschatka/amphtml,chaveznvg/amphtml,voyagegroup/amphtml,widespace-os/amphtml,jpettitt/amphtml,Gregable/amphtml,dotandads/amphtml,taboola/amphtml,taboola/amphtml,zhouyx/amphtml,jmadler/amphtml,adup-tech/amphtml,src-code/amphtml,media-net/amphtml,widespace-os/amphtml,alanorozco/amphtml,zhangsu/amphtml,jridgewell/amphtml,koshka/amphtml,Gregable/amphtml,sharethrough/amphtml,yandex-pcode/amphtml,media-net/amphtml,BenDz/amphtml,nexxtv/amphtml,techhtml/amphtml,sebastianbenz/amphtml,koshka/amphtml,kamtschatka/amphtml,ampproject/amphtml,zhouyx/amphtml,jpettitt/amphtml,Gregable/amphtml,rsimha-amp/amphtml,BenDz/amphtml,nexxtv/amphtml,src-code/amphtml,pedjoni8/amphtml,honeybadgerdontcare/amphtml,honeybadgerdontcare/amphtml,taboola/amphtml,Gregable/amphtml,jpettitt/amphtml,adup-tech/amphtml,jmadler/amphtml,ampproject/amphtml,smartadserver/amphtml,danielrozenberg/amphtml,dotandads/amphtml,ampproject/amphtml,sharethrough/amphtml,yandex-pcode/amphtml,mhc-gh/amphtml,dotandads/amphtml,alanorozco/amphtml,tlong2/amphtml,cvializ/amphtml,widespace-os/amphtml,alanorozco/amphtml,prateekbh/amphtml,BenDz/amphtml,media-net/amphtml,pedjoni8/amphtml,techhtml/amphtml,widespace-os/amphtml,alanorozco/amphtml,rsimha-amp/amphtml,yieldbot/amphtml,zhouyx/amphtml,tlong2/amphtml,jridgewell/amphtml,lannka/amphtml,yieldbot/amphtml,koshka/amphtml,taboola/amphtml,alanorozco/amphtml,cory-work/amphtml,ampproject/amphtml,koshka/amphtml,yandex-pcode/amphtml,techhtml/amphtml,mhc-gh/amphtml,smartadserver/amphtml,sebastianbenz/amphtml,nexxtv/amphtml,dotandads/amphtml,cory-work/amphtml,jridgewell/amphtml,jridgewell/amphtml,kamtschatka/amphtml,laterpay/amphtml,zhouyx/amphtml,nexxtv/amphtml,honeybadgerdontcare/amphtml,chaveznvg/amphtml,yandex-pcode/amphtml,honeybadgerdontcare/amphtml,jridgewell/amphtml,koshka/amphtml,Gregable/amphtml,taboola/amphtml,ampproject/amphtml,danielrozenberg/amphtml,alanorozco/amphtml,nexxtv/amphtml,rsimha-amp/amphtml,voyagegroup/amphtml,cvializ/amphtml,jmadler/amphtml,Gregable/amphtml,mhc-gh/amphtml,zhouyx/amphtml,media-net/amphtml,adup-tech/amphtml,erwinmombay/amphtml,alanorozco/amphtml,rsimha-amp/amphtml,media-net/amphtml,yieldbot/amphtml,adup-tech/amphtml,cvializ/amphtml,taboola/amphtml,jpettitt/amphtml,yandex-pcode/amphtml,danielrozenberg/amphtml,erwinmombay/amphtml,sebastianbenz/amphtml,yieldbot/amphtml,danielrozenberg/amphtml,honeybadgerdontcare/amphtml,tlong2/amphtml,BenDz/amphtml,cory-work/amphtml,zhouyx/amphtml,BenDz/amphtml,danielrozenberg/amphtml,jpettitt/amphtml,mhc-gh/amphtml,taboola/amphtml,src-code/amphtml,cvializ/amphtml,dotandads/amphtml,cvializ/amphtml,jpettitt/amphtml,honeybadgerdontcare/amphtml,laterpay/amphtml,chaveznvg/amphtml,jmadler/amphtml,cory-work/amphtml,voyagegroup/amphtml,widespace-os/amphtml,zhangsu/amphtml,widespace-os/amphtml,smartadserver/amphtml,sharethrough/amphtml,voyagegroup/amphtml,mhc-gh/amphtml