def test_creates_virtualenv_with_args_run_from_pipe(self): self.mock_sys.argv = ['-', 'vpath', '--prompt', 'findpromptfind'] self.latest_ver = bootstrap_vi.get_latest_virtualenv_version() bootstrap_vi.main() with open('vpath/bin/activate') as fh: self.assertIn('findpromptfind', fh.read())
def test_creates_latest_virtualenv_defaults_run_from_pipe(self): self.mock_sys.argv = [] bootstrap_vi.main() self.assertTrue(exists('venv/bin/activate'), 'Did not create venv/bin/activate')