| Conditions | 1 |
| Total Lines | 8 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import sys |
||
| 11 | def test_get_variant(): |
||
| 12 | assert get_variant("") is None |
||
| 13 | assert get_variant("foo") is None |
||
| 14 | assert get_variant("foo[") is None |
||
| 15 | assert get_variant("foo[bar") is None |
||
| 16 | assert get_variant("foo[bar]") == "bar" |
||
| 17 | assert get_variant("foo[]") is None |
||
| 18 | assert get_variant("foo[bar_1_2]") == "bar_1_2" |
||
| 19 | |||
| 28 |