Module: check_mk
Branch: master
Commit: 94a2f52ca62d78d870e88249606a3fe30064e0ea
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=94a2f52ca62d78…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Fri Dec 22 10:16:49 2017 +0100
Reformat docstrings
Change-Id: I115dcd452e6b810a2a3e27b47ec149b99d8d9c61
---
tests/checks/checktestlib.py | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/tests/checks/checktestlib.py b/tests/checks/checktestlib.py
index c8a723d..2d55171 100644
--- a/tests/checks/checktestlib.py
+++ b/tests/checks/checktestlib.py
@@ -29,10 +29,12 @@ class PerfValue(object):
class BasicCheckResult(object):
- """A basic check result
+ """
+ A basic check result
This class models a basic check result (status, infotext, perfdata) and provides
- facilities to match it against conditions, such as 'Status is...' or
'Infotext contains...'
+ facilities to match it against conditions, such as 'Status is...' or
+ 'Infotext contains...'
"""
def __init__(self, status, infotext, perfdata=None):
@@ -55,13 +57,17 @@ class BasicCheckResult(object):
class CheckResult(object):
- """A check result potentially consisting of multiple subresults, as
returned by yield-style checks"""
+ """
+ A check result potentially consisting of multiple subresults,
+ as returned by yield-style checks
+ """
def __init__(self, result):
- """Initializes a list of subresults using BasicCheckResult.
+ """
+ Initializes a list of subresults using BasicCheckResult.
- If the result is already a plain check result in its tuple representation, we
initialize
- a list of length 1.
+ If the result is already a plain check result in its tuple representation,
+ we initialize a list of length 1.
"""
if type(result) == types.GeneratorType: