def test_salt_and_pepper_noise_without_min_max(self):
        """ test the salt and pepper function without specified min and max values.
        """
        x_sp = utils.salt_and_pepper_noise(self.x, self.v)

        mn = self.x.min()
        mx = self.x.max()

        for sample in x_sp:
            salted_elements = sum([i == mn or i == mx for i in sample])
            self.assertAlmostEqual(salted_elements, self.v, delta=2)
 test the salt and pepper function without specified min and max values.
        
tests/test_utils.py