def compilesTo(self, input, expected_output):
input = '<STR_LIT>' + input<EOL>environ = { <EOL>'<STR_LIT>': self.path, <EOL>'<STR_LIT>': '<STR_LIT:GET>',<EOL>'<STR_LIT>': FakePayload('<STR_LIT>'),<EOL>} <EOL>request = WSGIRequest(environ) <EOL>context= RequestContext(request)<EOL>context.update(self.context)<EOL>self.assertEqual(Template(input).render(context).strip(), expected_output.strip())<EOL>
Asserts that the given template string compiles to the given output.