in reply to Philosophical question about testing
You say your test suite uses basically the same code as in your module to see if the new permissions are acceptable. So separate the checking and the fixing.
Create some files and set their permissions explicitly and test whether your permission checking code, at run time, evaluates the acceptability of each set of permissions in the same way that you, at test writing time, believe it should. Nothing circular about that.
|
|---|