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