This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |