(self, path, token)
| 93 | ) |
| 94 | |
| 95 | def _get_token_line_number(self, path, token): |
| 96 | with open(path) as f: |
| 97 | for line, content in enumerate(f, 1): |
| 98 | if token in content: |
| 99 | return line |
| 100 | self.fail( |
| 101 | "The token '%s' could not be found in %s, please check the test config" |
| 102 | % (token, path) |
| 103 | ) |
| 104 | |
| 105 | def assertLocationCommentPresent(self, po_filename, line_number, *comment_parts): |
| 106 | r""" |