From 745ef1b0e338b5160274f83900a10a99de46dcdb Mon Sep 17 00:00:00 2001 From: tarek Date: Sun, 13 Sep 2009 01:37:33 +0200 Subject: Now install_site works properly with distribute distribution. fixes #44 --HG-- branch : distribute extra : rebase_source : 5dacd496be767ed406f7f8c76a598e7f186acdbc --- setuptools/tests/test_easy_install.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 setuptools/tests/test_easy_install.py (limited to 'setuptools/tests/test_easy_install.py') 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) + -- cgit v1.2.3