def test_remove(self): dotconf = DotConfig('/'.join((HERE, 'testfiles', 'htdocs', 'horde')), pretend=True) self.assertTrue(dotconf.kill()) output = sys.stdout.getvalue().split('\n') self.assertEqual( output[0], '* Would have removed ' + '/'.join( (HERE, 'testfiles', 'htdocs', 'horde', '.webapp')))
def test_remove(self): dotconf = DotConfig('/'.join((HERE, 'testfiles', 'htdocs', 'horde')), pretend=True) self.assertTrue(dotconf.kill()) output = sys.stdout.getvalue().split('\n') self.assertEqual(output[0], '* Would have removed ' + '/'.join((HERE, 'testfiles', 'htdocs', 'horde', '.webapp')))