(self)
| 27 | |
| 28 | class TextNodeTest(SimpleTestCase): |
| 29 | def test_textnode_repr(self): |
| 30 | engine = Engine() |
| 31 | for temptext, reprtext in [ |
| 32 | ("Hello, world!", "<TextNode: 'Hello, world!'>"), |
| 33 | ("One\ntwo.", "<TextNode: 'One\\ntwo.'>"), |
| 34 | ]: |
| 35 | template = engine.from_string(temptext) |
| 36 | texts = template.nodelist.get_nodes_by_type(TextNode) |
| 37 | self.assertEqual(repr(texts[0]), reprtext) |
| 38 | |
| 39 | |
| 40 | class ErrorIndexTest(SimpleTestCase): |
nothing calls this directly
no test coverage detected