def test_install_pypi_complex_1(self):
        """test 'pip install <pypi_package>' with a complex package."""
        output = self.run_command("pip --verbose install twisted", exitcode=0)
        self.assertIn("Downloading package", output)
        self.assert_did_run_setup(output)
        self.assertIn("Package installed: Twisted", output)
        try:
            import twisted
        except ImportError as e:
            self.logger.info("sys.path = " + str(sys.path))
            raise AssertionError("Could not import installed module: " + repr(e))
test 'pip install <pypi_package>' with a complex package.
tests/pip/test_pip.py