(scenario)
| 601 | }, |
| 602 | ]) |
| 603 | def test_escape_label_name(scenario): |
| 604 | input = scenario["input"] |
| 605 | |
| 606 | got = escape_label_name(input, UNDERSCORES) |
| 607 | assert got == scenario["expectedUnderscores"], f"[{scenario['name']}] Underscore escaping failed" |
| 608 | |
| 609 | got = escape_label_name(input, DOTS) |
| 610 | assert got == scenario["expectedDots"], f"[{scenario['name']}] Dots escaping failed" |
| 611 | |
| 612 | got = escape_label_name(input, VALUES) |
| 613 | assert got == scenario["expectedValue"], f"[{scenario['name']}] Value encoding failed" |
| 614 | |
| 615 | |
| 616 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected