def test_generate_includes_file(self):
     utils.install_module(MOCK_MODULE, TEST_VENV)
     modules = {'plugins': ['cloudify-fabric-plugin']}
     includes_file = ap._generate_includes_file(modules, TEST_VENV)
     includes = imp.load_source('includes_file', includes_file)
     self.assertIn('cloudify-fabric-plugin', includes.included_plugins)
     self.assertIn('cloudify-puppet-plugin', includes.included_plugins)
 def test_install_module(self):
     utils.install_module(TEST_MODULE, TEST_VENV)
     pip_freeze_output = utils.get_installed(TEST_VENV).lower()
     self.assertIn(TEST_MODULE, pip_freeze_output)
 def test_install_module(self):
     utils.install_module(TEST_MODULE, TEST_VENV)
     p = utils.run('{0}/bin/pip freeze'.format(TEST_VENV))
     self.assertIn(TEST_MODULE, p.stdout)
 def test_install_module(self):
     utils.install_module(TEST_MODULE, TEST_VENV)
     pip_freeze_output = utils.get_installed(TEST_VENV).lower()
     self.assertIn(TEST_MODULE, pip_freeze_output)
 def test_generate_includes_file_no_previous_includes_file_provided(self):
     utils.install_module(MOCK_MODULE_NO_INCLUDES_FILE, TEST_VENV)
     modules = {'plugins': ['cloudify-fabric-plugin']}
     includes_file = ap._generate_includes_file(modules, TEST_VENV)
     includes = imp.load_source('includes_file', includes_file)
     self.assertIn('cloudify-fabric-plugin', includes.included_plugins)