summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authortarek <none@none>2009-09-13 01:37:33 +0200
committertarek <none@none>2009-09-13 01:37:33 +0200
commit745ef1b0e338b5160274f83900a10a99de46dcdb (patch)
treebebb820ef98c4b2ab30b27dfc5b08b57eeaa31b5 /setuptools/tests
parent4fba5767d7d1d844ba0c27d0e3bb0931b621d8bd (diff)
downloadpython-setuptools-git-745ef1b0e338b5160274f83900a10a99de46dcdb.tar.gz
Now install_site works properly with distribute distribution. fixes #44
--HG-- branch : distribute extra : rebase_source : 5dacd496be767ed406f7f8c76a598e7f186acdbc
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)
+