Completed
Push — master ( 40c094...b6a1c4 )
by Wojtek
02:30
created

ProcessValidator.validate()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
1
"""Validate process."""
2
3
4 1
class ProcessValidator(object):
5
    """Validate if process is correctly defined."""
6 1
    @staticmethod
7
    def validate(process):
8
        """Main method."""
9
        return process is not None
10