(self)
| 76 | self.assertEqual(doc.getvalue(), b'foo\n') |
| 77 | |
| 78 | def test_add_links(self): |
| 79 | doc = ReSTDocument() |
| 80 | doc.hrefs['foo'] = 'https://example.com/' |
| 81 | self.assertEqual( |
| 82 | doc.getvalue(), b'\n\n.. _foo: https://example.com/\n' |
| 83 | ) |
| 84 | |
| 85 | |
| 86 | class TestDocumentStructure(unittest.TestCase): |
nothing calls this directly
no test coverage detected