def runTest(self): touch(self._get_test_file_name()) assert exists(self._get_test_file_name()) fd = open(self._get_test_file_name(), 'w+') fd.write('hello') fd.close() touch(self._get_test_file_name()) assert open(self._get_test_file_name()).read() == 'hello'
def setUp(self): self.tearDown() makedirs(join('walk0', 'walk1', 'walk2')) touch(join('walk0', 'walk0.txt')) touch(join('walk0', 'walk1', 'walk1.txt')) touch(join('walk0', 'walk1', 'walk2', 'walk2.txt')) makedirs(join('walk0', '.svn'))
def setUp(self): self.tearDown() mkdir('files') for i in xrange(3): touch(join('files', 'file' + str(i) + '.txt'))
def setUp(self): self.tearDown() makedirs(join('rglob0', 'rglob1', 'rglob2')) touch(join('rglob0', 'rglob0.txt')) touch(join('rglob0', 'rglob1', 'rglob1.txt')) touch(join('rglob0', 'rglob1', 'rglob2', 'rglob2.txt'))