bitprophet/spec — pull request #19 by narfdotpl (2012-05-23 09:54:32+00:00)
Title: don't show "setup" nor "teardown"

#10 idea: mark `setup` and `teardown` as hidden with `@dont_show` decorator.

### explicit

```python
from spec import dont_show

class X(object):

@dont_show
def setup(self):
self.x = 1

def x_is_1(self):
assert self.x == 1
```

```
X
- x is 1
```

### implicit

```python
from spec import Spec

class Y(Spec):

def setup(self):
self.y = 2

def y_is_2(self):
assert self.y == 2
```

```
Y
- y is 2
```