Tag: pytest
Getting started with pytest November 27th, 2016
Pytest is my preferred Python testing library. It makes simple tests incredibly easy to write, and is full of advanced features (and tons of plugins) that help with more advanced testing scenarios. To demonstrate the basics, I’m going to walk through how I’d solve the first couple cryptopals challenges in a test-driven style, using py.test. Spoiler alert: I’m going to spoil the first challenge, and maybe a bit of the second, below.…