def METHOD_NAME(self):
    dig_mock = MagicMock(side_effect=_spf_side_effect)
    with patch.dict(dig.__salt__, {"cmd.run_all": dig_mock}):
        self.assertEqual(dig.SPF("foo.com"), ["216.73.93.70/31", "216.73.93.72/31"])