Created
April 3, 2015 14:01
-
-
Save istepaniuk/21d00a38a0b05ac48a28 to your computer and use it in GitHub Desktop.
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
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