Skip to content

Instantly share code, notes, and snippets.

@binarymatt
Created April 29, 2014 01:48
Show Gist options
  • Save binarymatt/11388927 to your computer and use it in GitHub Desktop.
Save binarymatt/11388927 to your computer and use it in GitHub Desktop.
from hypothesis.testdecorators import given
def me(x,y):
if x < y:
raise Exception('this is an error')
return True
def test_answer():
assert me(5,3) == True
@given(int, int)
def test_addition(x, y):
print x,y
me(x,y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment