23b7c6fd83
* Put tests together with the tasks * Split tasks into folders Fuel-CI: disable Change-Id: I4e09cf80592f7a5125d20ffd72cf8408922d5436 Related-Blueprint: fuel-library-modularization
14 lines
388 B
Python
14 lines
388 B
Python
import subprocess
|
|
import unittest
|
|
|
|
|
|
class GlobalsPreTest(unittest.TestCase):
|
|
def test_can_get_uid(self):
|
|
hiera = subprocess.Popen(['hiera', 'uid'], stdout=subprocess.PIPE)
|
|
out = hiera.communicate()[0].rstrip()
|
|
self.assertNotEqual(out, 'nil',
|
|
'Could not get "uid" string from Hiera!')
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|