| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 11 | class PlainCondition(SimpleCondition): |
||
| 12 | """ |
||
| 13 | A plain condition matches a field in the row against a plain value. |
||
| 14 | """ |
||
| 15 | |||
| 16 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 17 | def match(self, row): |
||
| 18 | """ |
||
| 19 | Returns True if the fields equals the expression of this simple condition. Returns False otherwise. |
||
| 20 | |||
| 21 | :param dict row: The row. |
||
| 22 | |||
| 23 | :rtype: bool |
||
| 24 | """ |
||
| 25 | return row[self._field] == self._expression |
||
| 26 | |||
| 28 |