Conditions | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """ |
||
19 | 1 | def match(self, row): |
|
20 | """ |
||
21 | Returns True if the field matches the regular expression of this simple condition. Returns False otherwise. |
||
22 | |||
23 | :param dict row: The row. |
||
24 | |||
25 | :rtype: bool |
||
26 | """ |
||
27 | 1 | if re.search(self._expression, row[self._field]): |
|
28 | 1 | return True |
|
29 | |||
30 | 1 | return False |
|
31 | |||
43 |