summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-09-13 14:28:34 +0200
committerMartin v. Löwis <martin@v.loewis.de>2009-09-13 14:28:34 +0200
commit3c6ebb2ab608930ea3d1e54476344a990526e64a (patch)
treeedfddb93275be90c0e2effd551e3669bfbcd1347 /setuptools/tests
parent5bf298f0e8b30f236b76997c66eee38de798f710 (diff)
parent28c9b94a4da7a469bb726309bce461dd0843e744 (diff)
downloadpython-setuptools-git-3c6ebb2ab608930ea3d1e54476344a990526e64a.tar.gz
Merge upstream changes.
--HG-- branch : distribute extra : rebase_source : 4f43f59bf581c692bfbe4b45a8567b089fa0173a
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_easy_install.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
new file mode 100644
index 00000000..583c072b
--- /dev/null
+++ b/setuptools/tests/test_easy_install.py
@@ -0,0 +1,20 @@
+"""Easy install Tests
+"""
+import os, shutil, tempfile, unittest
+from setuptools.command.easy_install import easy_install
+from setuptools.dist import Distribution
+
+class TestEasyInstallTest(unittest.TestCase):
+
+ def test_install_site_py(self):
+ dist = Distribution()
+ cmd = easy_install(dist)
+ cmd.sitepy_installed = False
+ cmd.install_dir = tempfile.mkdtemp()
+ try:
+ cmd.install_site_py()
+ sitepy = os.path.join(cmd.install_dir, 'site.py')
+ self.assert_(os.path.exists(sitepy))
+ finally:
+ shutil.rmtree(cmd.install_dir)
+