def test_specify_install_requires(self):
     install_requires = ["first", "second"]
     main.create_project(self.project_name, install_requires=install_requires)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(
         self.project_path, {"install_requires": ",".join(install_requires)}
     )
 def test_specify_install_requires(self):
     install_requires = ["first", "second"]
     main.create_project(self.project_name,
                         install_requires=install_requires)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(
         self.project_path,
         {"install_requires": ",".join(install_requires)})
 def test_project_name_untouched_when_package_name_is_given(self):
     expected_project_name = self.project_name
     self.project_path = self._full_path(self.home_dir, self.project_name)
     main.create_project(self.project_name,
                         **{"package_name": self.package_name})
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(
         self.project_path, {"name": expected_project_name})
 def test_create_project_converts_dash_name_to_underscore(self):
     expected_name = self.project_name + "_1"
     self.project_name += "-1"
     # Override the default project path
     self.project_path = self._full_path(self.home_dir, self.project_name)
     main.create_project(self.project_name)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(self.project_path, {"name": expected_name})
 def test_create_project_converts_dash_name_to_underscore(self):
     expected_name = self.project_name + "_1"
     self.project_name += "-1"
     # Override the default project path
     self.project_path = self._full_path(self.home_dir, self.project_name)
     main.create_project(self.project_name)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(self.project_path,
                                                  {"name": expected_name})
 def test_create_project_with_default_options(self):
     # First, fake current directory to our home_dir
     main.create_project(self.project_name)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default(self.project_path)
 def test_specify_author(self):
     author = "Bob"
     main.create_project(self.project_name, author=author)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(self.project_path,
                                                  {"author": author})
 def test_create_project_specify_description(self):
     description = "This is a nice package"
     main.create_project(self.project_name, description=description)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(
         self.project_path, {"description": description})
 def test_create_project_specify_version(self):
     version = "0.0"
     main.create_project(self.project_name, version=version)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(self.project_path,
                                                  {"version": version})
 def test_create_project_with_dir_option(self):
     main.create_project(self.project_name, dest_dir=self.home_dir)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default(self.project_path)
 def test_create_project_with_dir_option(self):
     main.create_project(self.project_name, dest_dir=self.home_dir)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default(self.project_path)
 def test_create_project_with_default_options(self):
     # First, fake current directory to our home_dir
     main.create_project(self.project_name)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default(self.project_path)
 def test_specify_author(self):
     author = "Bob"
     main.create_project(self.project_name, author=author)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(self.project_path, {"author": author})
 def test_create_project_specify_description(self):
     description = "This is a nice package"
     main.create_project(self.project_name, description=description)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(self.project_path, {"description": description})
 def test_create_project_specify_version(self):
     version = "0.0"
     main.create_project(self.project_name, version=version)
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(self.project_path, {"version": version})
 def test_project_name_untouched_when_package_name_is_given(self):
     expected_project_name = self.project_name
     self.project_path = self._full_path(self.home_dir, self.project_name)
     main.create_project(self.project_name, **{"package_name": self.package_name})
     self.assert_dir_created(self.project_path)
     self.assert_setuppy_file_used_default_except(self.project_path, {"name": expected_project_name})