def test_install_command(self):
        """test 'pip install <package>' creates commandline scripts."""
        # 1. test command not yet installed
        self.run_command("pyrsa-keygen --help", exitcode=127)

        # 2. install
        output = self.run_command("pip --verbose install rsa==4.5", exitcode=0)
        self.assertIn("Downloading package", output)
        self.assert_did_run_setup(output)
        self.assertIn("Package installed: rsa", output)

        # 3. test command
        output = self.run_command("pyrsa-keygen --help", exitcode=0)
        self.assertIn("pyrsa-keygen", output)
        self.assertIn("RSA", output)

        # 4. remove package
        self.run_command("pip --verbose uninstall rsa", exitcode=0)

        # 5. ensure command not found after uninstall
        self.run_command("pyrsa-keygen --help", exitcode=127)
test 'pip install <package>' creates commandline scripts.
tests/pip/test_pip.py