472
472
['file-id', 'foobarbaz'])
475
class TestSelftestCleanOutput(TestCaseInTempDir):
477
def test_clean_output(self):
478
# check that 'bzr selftest --clean-output' works correct
479
dirs = ('test0000.tmp', 'test0001.tmp', 'bzrlib', 'tests')
480
files = ('bzr', 'setup.py', 'test9999.tmp')
485
f.write('content of ')
490
before = os.listdir(root)
492
self.assertEquals(['bzr','bzrlib','setup.py',
493
'test0000.tmp','test0001.tmp',
494
'test9999.tmp','tests'],
497
out, err = self.run_bzr('selftest --clean-output',
500
self.assertEquals(['delete directory: test0000.tmp',
501
'delete directory: test0001.tmp'],
502
sorted(out.splitlines()))
503
self.assertEquals('', err)
505
after = os.listdir(root)
507
self.assertEquals(['bzr','bzrlib','setup.py',
508
'test9999.tmp','tests'],
512
475
class TestSelftestListOnly(TestCase):