1
0

test_gentoolkitmod.py 639 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. # Import python libs
  3. from __future__ import absolute_import, print_function, unicode_literals
  4. # Import Salt Testing libs
  5. from tests.support.case import ModuleCase
  6. class GentoolkitModuleTest(ModuleCase):
  7. def setUp(self):
  8. '''
  9. Set up test environment
  10. '''
  11. super(GentoolkitModuleTest, self).setUp()
  12. ret_grain = self.run_function('grains.item', ['os'])
  13. if ret_grain['os'] not in 'Gentoo':
  14. self.skipTest('For Gentoo only')
  15. def test_revdep_rebuild_true(self):
  16. ret = self.run_function('gentoolkit.revdep_rebuild')
  17. self.assertTrue(ret)