old_contents: import sys
  sys.path.append('../')
  
  import unittest
  
  from data import neuhaus
  from fwer import bonferroni
  
  class TestFWER(unittest.TestCase):
  
      def test_bonferroni_neuhaus(self):
          """Test the Bonferroni procedure using the Neuhaus et al. data."""
          pvals = neuhaus()
          significant = bonferroni(pvals, alpha=0.05)
          """The first three tests should be significant after the 
          correction."""
          for i in range(0, 3):
              self.assertTrue(significant[i])
          """The other tests should not be significant after the 
          correction."""
          for i in range(3, 15):
              self.assertFalse(significant[i])
  
  if __name__ == '__main__':
      unittest.main()
  
  
new_contents: import sys
  sys.path.append('../')
  
  import numpy as np
  
  import unittest
  
  from data import neuhaus
  from fwer import bonferroni
  
  class TestFWER(unittest.TestCase):
  
      def test_bonferroni_neuhaus(self):
          """Test the Bonferroni procedure using the Neuhaus et al. data."""
          pvals = neuhaus()
          significant = bonferroni(pvals, alpha=0.05)
          """The first three tests should be significant after the
          correction."""
          for i in range(0, 3):
              self.assertTrue(significant[i])
          """The other tests should not be significant after the
          correction."""
          for i in range(3, 15):
              self.assertFalse(significant[i])
  
      def test_bonferroni_nonsig(self):
          """Test the Bonferroni procedure using p-values in the range
          [0.05, 1)."""
          pvals = np.asarray([0.05, 0.3, 0.5, 1.0, 0.05])
          significant = bonferroni(pvals, alpha=0.05)
          for i in range(0, len(pvals)):
              self.assertFalse(significant[i])
  
  if __name__ == '__main__':
      unittest.main()
  
  
subject: Test with non-significant p-values.