1
0

test_gentoolkitmod.py 638 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. from __future__ import absolute_import, print_function, unicode_literals
  3. import pytest
  4. from tests.support.case import ModuleCase
  5. @pytest.mark.windows_whitelisted
  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)