title: Testing email implementation in Python
body: <p>Assuming an email implementation as simple as the accepted answer on this <a href="https://stackoverflow.com/questions/348392/receive-and-send-emails-in-python">post</a>, what can be the best way to write a unit test for the implementation? (I do not want to shoot emails to a valid recipient as part of testing the implementation)</p>