tools/KateDJ/kdj/tester.py
raw| 1 | import sys |
| 2 | import os |
| 3 | |
| 4 | from .tools import Tools |
| 5 | |
| 6 | class Tester: |
| 7 | def __init__(self,tools,contents,format): |
| 8 | self.Test(tools,contents,format) |
| 9 | |
| 10 | def Test(self,tools,contents,format): |
| 11 | params=[] |
| 12 | params+=['-t',format] |
| 13 | params+=['-o','-'] |
| 14 | params+=['-l','x-test','-c','test'] |
| 15 | tools.run_kateenc(params,stdin=contents) |
| 16 |