(self)
| 171 | self.assertIn(b'Project-Id-Version: PACKAGE VERSION', res.out) |
| 172 | |
| 173 | def test_funcdocstring(self): |
| 174 | for doc in ('"""doc"""', "r'''doc'''", "R'doc'", 'u"doc"'): |
| 175 | with self.subTest(doc): |
| 176 | msgids = self.extract_docstrings_from_str(dedent('''\ |
| 177 | def foo(bar): |
| 178 | %s |
| 179 | ''' % doc)) |
| 180 | self.assertIn('doc', msgids) |
| 181 | |
| 182 | def test_funcdocstring_bytes(self): |
| 183 | msgids = self.extract_docstrings_from_str(dedent('''\ |
nothing calls this directly
no test coverage detected