About Refactoring and Testing

When refactoring, use functional tests to see if behaviour of your app stayed the same, but change, add, or remove unit tests to validate the implementation.

Aidas Bendoraitis (@DjangoTricks)

Programming Testing Refactoring