def _testNotStripped(self, symbol, size=None, content=None): start_file = symbol.file_name after = upload_symbols.AdjustSymbolFileSize(symbol, self.working, size) self.assertIs(after, symbol) self.assertEqual(after.file_name, start_file) if content is not None: self.assertEqual(osutils.ReadFile(after.file_name), content)
def _testStripped(self, symbol, size=None, content=None): after = upload_symbols.AdjustSymbolFileSize( symbol, self.working, size) self.assertIs(after, symbol) self.assertTrue(after.file_name.startswith(self.working)) if content is not None: self.assertEqual(osutils.ReadFile(after.file_name), content)