(self, line)
| 37 | self._it = None |
| 38 | |
| 39 | def append(self, line): |
| 40 | self._lines.append(line) |
| 41 | try: |
| 42 | timestamp = datetime.datetime.strptime(line[:19], '%b %d %H:%M:%S.%f').replace( |
| 43 | year=_CURRENT_YEAR) |
| 44 | except: # pylint: disable=bare-except |
| 45 | pass |
| 46 | else: |
| 47 | if not self._start: |
| 48 | self._start = timestamp |
| 49 | self._end = timestamp |
| 50 | if line.startswith('[It] '): |
| 51 | self._it = line |
| 52 | if line.startswith('[BeforeEach] ') and not self._it: |
| 53 | self._it = line |
| 54 | |
| 55 | def overlaps(self, after, before): |
| 56 | if self._end and after and self._end < after: |
no outgoing calls