def test_will_create_virtualenv_in_devenv_dir(self, mock_virtualenv, mock_subpprocess): EnvironmentBuilder.build('project', self._config) mock_virtualenv.assert_called_once_with(os.path.join(os.getcwd(), '.devenv', 'project'))
def test_will_create_downloads_dir(self, mock_virtualenv, mock_subpprocess): EnvironmentBuilder.build('project', self._config) self.assertTrue(os.path.exists(os.path.join('.devenv', 'project', 'downloads')))
def test_will_create_devenv_dir(self, mock_virtualenv, mock_subpprocess): EnvironmentBuilder.build('', self._config) self.assertTrue(os.path.exists('.devenv'))