def test_processAlias(self):
        sh = FilePath(self.mktemp())
        sh.setContent("""\
#!/bin/sh
rm -f process.alias.out
while read i; do
    echo $i >> process.alias.out
done""")
        os.chmod(sh.path, 0700)
        a = mail.alias.ProcessAlias(sh.path, None, None)
        m = a.createMessageReceiver()

        for l in self.lines:
            m.lineReceived(l)

        def _cbProcessAlias(ignored):
            lines = file('process.alias.out').readlines()
            self.assertEquals([L[:-1] for L in lines], self.lines)

        return m.eomReceived().addCallback(_cbProcessAlias)
Get information about a frame or traceback object.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/mail/test/test_mail.py/ProcessAliasTestCase.test_processAlias--crossover with--dataset/ETHPy150Open cournape/Bento/bento/compat/inspect.py/getframeinfo