test_gentoolkitmod.py 687 B

12345678910111213141516171819202122232425
  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. import pytest
  7. @pytest.mark.windows_whitelisted
  8. class GentoolkitModuleTest(ModuleCase):
  9. def setUp(self):
  10. '''
  11. Set up test environment
  12. '''
  13. super(GentoolkitModuleTest, self).setUp()
  14. ret_grain = self.run_function('grains.item', ['os'])
  15. if ret_grain['os'] not in 'Gentoo':
  16. self.skipTest('For Gentoo only')
  17. def test_revdep_rebuild_true(self):
  18. ret = self.run_function('gentoolkit.revdep_rebuild')
  19. self.assertTrue(ret)