bunch of docstring changes

This commit is contained in:
Trey Morris
2011-06-17 13:47:28 -05:00
parent 48aacbb459
commit 7db3aeb833

View File

@@ -55,13 +55,13 @@ LOG = log.getLogger('nova.tests')
class skip_test(object):
"""decorator that skips a test"""
"""Decorator that skips a test."""
def __init__(self, msg):
self.message = msg
def __call__(self, func):
def _skipper(*args, **kw):
"""wrapped skipper function."""
"""Wrapped skipper function."""
raise nose.SkipTest(self.message)
_skipper.__name__ = func.__name__
_skipper.__doc__ = func.__doc__