(self)
| 1577 | self._check_sample(msg) |
| 1578 | |
| 1579 | def test_initialize_with_file(self): |
| 1580 | # Initialize based on contents of file |
| 1581 | with open(self._path, 'w+', encoding='utf-8') as f: |
| 1582 | f.write(_sample_message) |
| 1583 | f.seek(0) |
| 1584 | msg = self._factory(f) |
| 1585 | self._post_initialize_hook(msg) |
| 1586 | self._check_sample(msg) |
| 1587 | |
| 1588 | def test_initialize_with_binary_file(self): |
| 1589 | # Initialize based on contents of binary file |
nothing calls this directly
no test coverage detected