Skip to content

Instantly share code, notes, and snippets.

View havocbane's full-sized avatar
🙀

Joseph Bane havocbane

🙀
  • Vetro, Inc.
  • Maine, USA
View GitHub Profile
@havocbane
havocbane / test_generator.py
Last active August 29, 2015 14:22
py.test Python Unit Test Generation
#!/usr/bin/env python
# Run with $ py.test test_generator.py
def test_evens():
for i in range(5):
yield is_even, i, i + i
def is_even(n, nn):
assert n % 2 == 0 or nn % 2 == 0
### Keybase proof
I hereby claim:
* I am havocbane on github.
* I am digitalbane (https://keybase.io/digitalbane) on keybase.
* I have a public key ASDPDDzmqYNo62R37DZ-ddYLf3DJb3o9FdhvEjwxyymB5Qo
To claim this, I am signing this object: