Skip to content

Instantly share code, notes, and snippets.

@istepaniuk
Created April 3, 2015 14:01
Show Gist options
  • Select an option

  • Save istepaniuk/21d00a38a0b05ac48a28 to your computer and use it in GitHub Desktop.

Select an option

Save istepaniuk/21d00a38a0b05ac48a28 to your computer and use it in GitHub Desktop.

Revisions

  1. istepaniuk created this gist Apr 3, 2015.
    18 changes: 18 additions & 0 deletions gistfile1.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    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