def test_check_extra_requirements(self):
        with patch.dict(pkg_resource.__salt__, {'pkg.check_extra_requirements':
                                                MagicMock(return_value='A')}):
            self.assertEqual(pkg_resource.check_extra_requirements('a', 'b'),
                             'A')

        self.assertTrue(pkg_resource.check_extra_requirements('a', False))
Test to check if the installed package already
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/pkg_resource_test.py/PkgresTestCase.test_check_extra_requirements