def test_render_escape(self): node = TextNode(self.doc, '<div>"hello"</div>') test.assert_equal(node.render(), '<div>"hello"</div>') node = TextNode(self.doc, '<div>"hello"</div>', safe=True) test.assert_equal(node.render(), '<div>"hello"</div>')
def test_render(self): node = TextNode(self.doc, 'hello world') test.assert_equal(node.render(), 'hello world')
def test_repr(self): node = TextNode(self.doc, 'hello world') test.assert_equal(repr(node), 'TextNode(hello world)')