for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import unittest
import shutil
from coalib.bears.requirements.GoRequirement import GoRequirement
@unittest.skipIf(shutil.which('go') is None, "Go is not installed.")
class GoRequirementTestCase(unittest.TestCase):
def test_installed_requirement(self):
self.assertTrue(GoRequirement('go').is_installed())
def test_not_installed_requirement(self):
self.assertFalse(GoRequirement('some_bad_package').is_installed())