(should_be_there_but_isnt: bool)
| 70 | fcf = libclinic.FormatCounterFormatter() |
| 71 | fcf.format(line) |
| 72 | def local_fail(should_be_there_but_isnt: bool) -> None: |
| 73 | if should_be_there_but_isnt: |
| 74 | fail("{} {} must contain {{{}}} exactly once!".format( |
| 75 | self.__class__.__name__, attr, name)) |
| 76 | else: |
| 77 | fail("{} {} must not contain {{{}}}!".format( |
| 78 | self.__class__.__name__, attr, name)) |
| 79 | |
| 80 | for name, count in fcf.counts.items(): |
| 81 | if name in fields: |