예제 #1
0
 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')))
예제 #2
0
 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')))