Example #1
0
 def write_test1(self):
     node = TextNode("moco chibi nanashi")
     with StringIO() as stream:
         node.write(stream)
         self.assertEqual(stream.getvalue(), "moco chibi nanashi")
Example #2
0
 def write_test2(self):
     node = TextNode("<moco> chibi nanashi")
     with StringIO() as stream:
         node.write(stream)
         self.assertEqual(stream.getvalue(), "&lt;moco&gt; chibi nanashi")