def test___virtual__has_boto_reqs_true(self, mock_assign_funcs, mock_boto_reqs): mock_boto_reqs.return_value = True mock_assign_funcs.return_value = False result = boto_ssm.__virtual__() self.assertEqual(result, True)
def test___virtual__has_boto_reqs_false(self, mock_boto_reqs): mock_boto_reqs.return_value = False result = boto_ssm.__virtual__() self.assertEqual(result, False)
def test___virtual_has_boto_reqs_false(): with patch("salt.utils.versions.check_boto_reqs", return_value=False): result = boto_ssm.__virtual__() assert result is False