I did the following in virtualenv and was able to run the tests.
$ pip install pyelasticsearch $ pip install nose virtualenv scripttest mock $ cdsitepackages
Depending on where your site directory is located, you are likely to replace cdsitepackages with something else. As @thaven mentioned, there are two directories created - one that is pyelasticsearch-0.5-py2.7.egg-info / and one that is pyelasticsearch. If the pyelasticsearch package was not really there, you could not import anything.
Jacinda
source share