Skip to content

Instantly share code, notes, and snippets.

@istepaniuk
Created April 3, 2015 14:01
Show Gist options
  • Save istepaniuk/21d00a38a0b05ac48a28 to your computer and use it in GitHub Desktop.
Save istepaniuk/21d00a38a0b05ac48a28 to your computer and use it in GitHub Desktop.
with description('something'):
with before.each:
self.something = Something()
with description('when we wanna reproduce the bug'):
with before.each:
self.something.do_work()
with it('swallows exceptions'):
pass
class Something(object):
def __init__(self):
raise Exception('Oops!')
def do_work(self):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment