mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
05ab624fcd
Closes #47338
23 lines
551 B
Python
23 lines
551 B
Python
# -*- coding: utf-8 -*-
|
|
'''
|
|
Test the core grains
|
|
'''
|
|
|
|
# Import python libs
|
|
from __future__ import absolute_import, unicode_literals
|
|
|
|
# Import Salt Testing libs
|
|
from tests.support.case import ModuleCase
|
|
|
|
|
|
class TestGrainsCore(ModuleCase):
|
|
'''
|
|
Test the core grains grains
|
|
'''
|
|
|
|
def test_grains_passed_to_custom_grain(self):
|
|
'''
|
|
test if current grains are passed to grains module functions that have a grains argument
|
|
'''
|
|
self.assertEqual(self.run_function('grains.get', ['custom_grain_test']), 'itworked')
|