I am completely new to unit testing. I am trying to understand how to approach writing test cases for real world code.
I understand the basic idea of testing whether a function gives the expected output. but I am confused about
How do you decide what test cases to write ?
How do you identify edge cases ?
How do you approach unit testing in a real python / django project?
Any practical advice or resources would be really helpful.