(self,func=None)
| 19 | return 0,0,text |
| 20 | |
| 21 | def Start(self,func=None): |
| 22 | if self.out: |
| 23 | sys.stdout = self |
| 24 | self.origOut = sys.__stdout__ |
| 25 | else: |
| 26 | sys.stderr= self |
| 27 | self.origOut = sys.__stderr__ |
| 28 | |
| 29 | if func: |
| 30 | self.func = func |
| 31 | else: |
| 32 | self.func = self.TestHook |
| 33 | |
| 34 | #Stop will stop routing of print statements thru this class |
| 35 | def Stop(self): |
no outgoing calls
no test coverage detected