Wherever there is logic in the code, we should test that it does what it should.
For instance the restriction function with those use cases:
- node with default policy OPEN, network without restriction inversion
- node with default policy OPEN, network with restriction inversion
- node with default policy CLOSED, network with restriction inversion
- node with default policy CLOSED, network without restriction inversion
Wherever there is logic in the code, we should test that it does what it should.
For instance the restriction function with those use cases: