Write code to be read first, and tested second. Tests may promote better structure, but prioritise readable code with more {mock,patch}ing.