| Conditions | 3 |
| Total Lines | 6 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 - |
||
| 20 | def test_error_in_gradient_attribute(): |
||
| 21 | msg = "Only the key 'ub' is allowed for the '{0}' attribute" |
||
| 22 | with pytest.raises(AttributeError, match=msg.format("negative_gradient")): |
||
| 23 | Flow(negative_gradient={"costs": 5}) |
||
| 24 | with pytest.raises(AttributeError, match=msg.format("positive_gradient")): |
||
| 25 | Flow(positive_gradient={"something": 5}) |
||
| 26 |