327
329
def assertTransportMode(self, transport, path, mode):
328
330
"""Fail if a path does not have mode mode.
334
336
path_stat = transport.stat(path)
335
337
actual_mode = stat.S_IMODE(path_stat.st_mode)
336
338
self.assertEqual(mode, actual_mode,
337
339
'mode of %r incorrect (%o != %o)' % (path, mode, actual_mode))
340
348
"""Send bzr and test log messages to a temporary file.