Passed
Pull Request — master (#161)
by Jan
04:20
created

test_evaluate   A

Complexity

Total Complexity 34

Size/Duplication

Total Lines 197
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 34
eloc 115
dl 0
loc 197
rs 9.68
c 0
b 0
f 0

34 Methods

Rating   Name   Duplication   Size   Complexity  
A tests.test_evaluate.test_ONETreeNoteval() 0 3 1
A tests.test_evaluate.test_bad_results_counts_for_operator_one() 0 2 1
A tests.test_evaluate.test_false_noteval_greater_zero() 0 2 1
A tests.test_evaluate.test_false_smaller_then_two() 0 3 1
A tests.test_evaluate.test_bad_results_counts_for_operator_or() 0 2 1
A tests.test_evaluate.test_false_error_unknown_eq_noteval_greater_zero() 0 3 1
A tests.test_evaluate.test_XORTreeUnknown() 0 3 1
A tests.test_evaluate.test_ANDTreeNotappl() 0 3 1
A tests.test_evaluate.test_ANDTreeError() 0 3 1
A tests.test_evaluate.test_ONETreeTrue() 0 3 1
A tests.test_evaluate.test_XORTreeNoteval() 0 3 1
A tests.test_evaluate.test_bad_results_counts_for_operator_and() 0 2 1
A tests.test_evaluate.test_ONETreeFalse1() 0 3 1
A tests.test_evaluate.test_ORTreeFalse() 0 3 1
A tests.test_evaluate.test_ORTreeUnknown() 0 3 1
A tests.test_evaluate.test_ORTreeTrue() 0 3 1
A tests.test_evaluate.test_ONETreeUnknown() 0 3 1
A tests.test_evaluate.test_ANDTreeFalse() 0 3 1
A tests.test_evaluate.test_false_eq_zero_duo() 0 3 1
A tests.test_evaluate.test_ORTreeError() 0 3 1
A tests.test_evaluate.test_ANDTreeTrue() 0 3 1
A tests.test_evaluate.test_XORTreeError() 0 3 1
A tests.test_evaluate.test_XORTreeFalse() 0 3 1
A tests.test_evaluate.test_ONETreeFalse() 0 3 1
A tests.test_evaluate.test_ANDTreeUnknown() 0 3 1
A tests.test_evaluate.test_ORTreeNoteval() 0 3 1
A tests.test_evaluate.test_ORTreeNotappl() 0 3 1
A tests.test_evaluate.test_XORTreeTrue() 0 3 1
A tests.test_evaluate.test_ANDTreeNoteval() 0 3 1
A tests.test_evaluate.test_ONETreeError() 0 3 1
A tests.test_evaluate.test_ONETreeNotappl() 0 3 1
A tests.test_evaluate.test_bad_results_counts_for_operator_xor() 0 2 1
A tests.test_evaluate.test_XORTreeNotappl() 0 3 1
A tests.test_evaluate.test_false_eq_or_greater_zero_unknown_noteval_notappl() 0 3 1
1
from oval_graph.oval_node import OvalNode
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
introduced by
import missing from __future__ import absolute_import
Loading history...
Unused Code introduced by
Unused OvalNode imported from oval_graph.oval_node
Loading history...
2
import oval_graph.evaluate
3
import tests.any_test_help
4
5
6
# AND operator
7
8
9
def test_ANDTreeTrue():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ANDTreeTrue" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
10
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
11
        None, "true", 'ANDTreeTrue.json')
12
13
14
def test_ANDTreeFalse():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ANDTreeFalse" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
15
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
16
        None, "false", 'ANDTreeFalse.json')
17
18
19
def test_ANDTreeError():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ANDTreeError" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
20
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
21
        None, "error", 'ANDTreeError.json')
22
23
24
def test_ANDTreeUnknown():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ANDTreeUnknown" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
25
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
26
        None, "unknown", 'ANDTreeUnknown.json')
27
28
29
def test_ANDTreeNoteval():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ANDTreeNoteval" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
30
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
31
        None, "noteval", 'ANDTreeNoteval.json')
32
33
34
def test_ANDTreeNotappl():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ANDTreeNotappl" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
35
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
36
        None, "notappl", 'ANDTreeNotappl.json')
37
38
# ONE operator
39
40
41
def test_ONETreeTrue():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ONETreeTrue" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
42
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
43
        None, "true", 'ONETreeTrue.json')
44
45
46
def test_ONETreeFalse():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ONETreeFalse" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
47
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
48
        None, "false", 'ONETreeFalse.json')
49
50
51
def test_ONETreeFalse1():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ONETreeFalse1" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
52
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
53
        None, "false", 'ONETreeFalse1.json')
54
55
56
def test_ONETreeError():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ONETreeError" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
57
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
58
        None, "error", 'ONETreeError.json')
59
60
61
def test_ONETreeUnknown():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ONETreeUnknown" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
62
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
63
        None, "unknown", 'ONETreeUnknown.json')
64
65
66
def test_ONETreeNoteval():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ONETreeNoteval" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
67
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
68
        None, "noteval", 'ONETreeNoteval.json')
69
70
71
def test_ONETreeNotappl():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ONETreeNotappl" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
72
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
73
        None, "notappl", 'ONETreeNotappl.json')
74
75
# OR operator
76
77
78
def test_ORTreeTrue():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ORTreeTrue" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
79
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
80
        None, "true", 'ORTreeTrue.json')
81
82
83
def test_ORTreeFalse():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ORTreeFalse" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
84
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
85
        None, "false", 'ORTreeFalse.json')
86
87
88
def test_ORTreeError():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ORTreeError" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
89
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
90
        None, "error", 'ORTreeError.json')
91
92
93
def test_ORTreeUnknown():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ORTreeUnknown" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
94
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
95
        None, "unknown", 'ORTreeUnknown.json')
96
97
98
def test_ORTreeNoteval():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ORTreeNoteval" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
99
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
100
        None, "noteval", 'ORTreeNoteval.json')
101
102
103
def test_ORTreeNotappl():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_ORTreeNotappl" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
104
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
105
        None, "notappl", 'ORTreeNotappl.json')
106
107
# XOR operator
108
109
110
def test_XORTreeTrue():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_XORTreeTrue" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
111
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
112
        None, "true", 'XORTreeTrue.json')
113
114
115
def test_XORTreeFalse():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_XORTreeFalse" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
116
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
117
        None, "false", 'XORTreeFalse.json')
118
119
120
def test_XORTreeError():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_XORTreeError" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
121
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
122
        None, "error", 'XORTreeError.json')
123
124
125
def test_XORTreeUnknown():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_XORTreeUnknown" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
126
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
127
        None, "unknown", 'XORTreeUnknown.json')
128
129
130
def test_XORTreeNoteval():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_XORTreeNoteval" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
131
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
132
        None, "noteval", 'XORTreeNoteval.json')
133
134
135
def test_XORTreeNotappl():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_XORTreeNotappl" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
136
    tests.any_test_help.any_test_treeEvaluation(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
137
        None, "notappl", 'XORTreeNotappl.json')
138
139
140
results_counts = {
141
    'true_cnt': -1,
142
    'false_cnt': -1,
143
    'error_cnt': -1,
144
    'unknown_cnt': -1,
145
    'noteval_cnt': -1,
146
    'notappl_cnt': -1
147
}
148
149
results_counts1 = {
150
    'true_cnt': 3,
151
    'false_cnt': 3,
152
    'error_cnt': 3,
153
    'unknown_cnt': 0,
154
    'noteval_cnt': -1,
155
    'notappl_cnt': 3
156
}
157
158
159
def test_bad_results_counts_for_operator_and():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_bad_results_counts_for_operator_and" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
160
    assert oval_graph.evaluate.oval_operator_and(results_counts) is None
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
161
162
163
def test_bad_results_counts_for_operator_one():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_bad_results_counts_for_operator_one" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
164
    assert oval_graph.evaluate.oval_operator_one(results_counts) is None
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
165
166
167
def test_bad_results_counts_for_operator_or():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_bad_results_counts_for_operator_or" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
168
    assert oval_graph.evaluate.oval_operator_or(results_counts) is None
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
169
170
171
def test_bad_results_counts_for_operator_xor():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_bad_results_counts_for_operator_xor" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
172
    assert oval_graph.evaluate.oval_operator_xor(results_counts) is None
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
173
174
175
def test_false_noteval_greater_zero():
0 ignored issues
show
introduced by
Missing function or method docstring
Loading history...
176
    assert not oval_graph.evaluate.greater_zero(results_counts, 'noteval_cnt')
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
177
178
179
def test_false_smaller_then_two():
0 ignored issues
show
introduced by
Missing function or method docstring
Loading history...
180
    assert not oval_graph.evaluate.smaller_than_two(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
181
        results_counts1, 'true_cnt')
182
183
184
def test_false_eq_zero_duo():
0 ignored issues
show
introduced by
Missing function or method docstring
Loading history...
185
    assert not oval_graph.evaluate.eq_zero_duo(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
186
        results_counts, 'noteval_cnt', 'error_cnt')
187
188
189
def test_false_eq_or_greater_zero_unknown_noteval_notappl():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_false_eq_or_greater_zero_unknown_noteval_notappl" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
190
    assert not oval_graph.evaluate.eq_or_greater_zero_unknown_noteval_notappl(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
191
        results_counts1)
192
193
194
def test_false_error_unknown_eq_noteval_greater_zero():
0 ignored issues
show
Coding Style Naming introduced by
Function name "test_false_error_unknown_eq_noteval_greater_zero" doesn't conform to '[a-z_][a-z0-9_]2,30$' pattern ('[a-z_][a-z0-9_]2,30$' pattern)

This check looks for invalid names for a range of different identifiers.

You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.

If your project includes a Pylint configuration file, the settings contained in that file take precedence.

To find out more about Pylint, please refer to their site.

Loading history...
introduced by
Missing function or method docstring
Loading history...
195
    assert not oval_graph.evaluate.error_unknown_eq_noteval_greater_zero(
0 ignored issues
show
Coding Style introduced by
Bad indentation. Found 4 tabs, expected 1
Loading history...
196
        results_counts)
197