fuel-library/deployment/puppet/osnailyfacter/modular/hiera/hiera_pre.py
Dmitry Ilyin 23b7c6fd83 Add test for modular tasks
* Put tests together with the tasks
* Split tasks into folders

Fuel-CI: disable
Change-Id: I4e09cf80592f7a5125d20ffd72cf8408922d5436
Related-Blueprint: fuel-library-modularization
2015-02-27 22:30:29 +02:00

15 lines
427 B
Python

import subprocess
import unittest
class HieraPreTest(unittest.TestCase):
def test_hiera_installed(self):
hiera = subprocess.Popen(['which', 'hiera'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
hiera.communicate()
self.assertEqual(hiera.returncode, 0, 'Hiera is not installed!')
if __name__ == '__main__':
unittest.main()