def test_output_file(self):
    with mktemp('{{ a }}') as template:
        try:
            self._testme(['-o', '/tmp/j2-out', template], '', env=dict(a='123'))
            self.assertEqual('123', io.open('/tmp/j2-out', 'r').read())
        finally:
            os.unlink('/tmp/j2-out')
def test_output_file(self):
    with mktemp('{{ a }}') as template:
        try:
            self._testme(['-o', '/tmp/j2-out', template], , env=dict(a='123'))
            self.assertEqual('123', io.open('/tmp/j2-out', 'r').read())
        finally:
            os.unlink('/tmp/j2-out')