(self, path)
| 554 | self.testcase = testcase |
| 555 | |
| 556 | def restore(self, path): |
| 557 | entry = super().restore(path) |
| 558 | self.testcase.assertTrue(entry is not None) # Check that it loaded a cache entry |
| 559 | if path.endswith('msvcrt.dll'): |
| 560 | self.testcase.assertEqual(len(entry.cmdlines), 2) |
| 561 | else: |
| 562 | self.testcase.assertEqual(len(entry.cmdlines), 0) |
| 563 | self.testcase.assertIsInstance(entry.data, bytearray) |
| 564 | return entry |
| 565 | |
| 566 | def save(self, path, entry): |
| 567 | self.testcase.assertFalse(True) # This should not be called! |
no outgoing calls
no test coverage detected