def test_activate(self): self.test_create_plain() tempout = StringIO() with redirected(out=tempout): ret = self._fence('activate') output = tempout.getvalue() self.assertEqual(ret, 0, 'activate printing failed') self.assertTrue(self.default_args['--virtualenv-dir'] in output) self.assertTrue('activate' in output)
def test_help(self): tempout = StringIO() with redirected(out=tempout): ret = self._fence_no_options('help') output = tempout.getvalue() self.assertTrue(output.strip().startswith('fencepy'))
def test_help(self): tempout = StringIO() with redirected(out=tempout): self._fence_no_options('help') output = tempout.getvalue() self.assertTrue(output.strip().startswith('fencepy'))