3 ms·
Ah, I think I see. If I break the functionality by changing the implementation of a private class, that should be reflected in the public API unit tests.
by growse 9y ago
Ah, I think I see. If I break the functionality by changing the implementation of a private class, that should be reflected in the public API unit tests.
- Marazan 9y agoThat's how I see it (in Java at least), unit tests are for guaranteeing that your classes API does what it says it does. In Python I am more loosely goosey about my unit tests and unit tests there are more for helping me write/think about tricky code.