def test_compile_return(self):
     engine = CompilationEngine("return;", "fakeOutputFile", True)
     engine.compile_return()
     self.assertEqual(engine.output, [
         '<returnStatement>', '<keyword> return </keyword>',
         '<symbol> ; </symbol>', '</returnStatement>'
     ])
 def test_compile_return_2(self):
     engine = CompilationEngine("return this;", "fakeOutputFile", True)
     engine.compile_return()
     self.assertEqual(engine.output, [
         '<returnStatement>', '<keyword> return </keyword>', '<expression>',
         '<term>', '<keyword> this </keyword>', '</term>', '</expression>',
         '<symbol> ; </symbol>', '</returnStatement>'
     ])