makerdao / dss-test

GNU Affero General Public License v3.0
11 stars 9 forks source link

Add Drop-in Common Tests #2

Closed hexonaut closed 2 years ago

hexonaut commented 2 years ago

There are a number of tests like rely, deny and file that are common across many contracts. We should add support for easily adding tests for these on any contract. Something like:

assertAuth(myContract) - this checks rely/deny assertFile(myContract, {what:"vow",selector:abi.encodeWithSelector(MyContract.vow.selector)}) (psuedo-code) - checks that this value is set properly.

hexonaut commented 2 years ago

This is done.