def test_margin_error(self):
     self.assertEqual(margin_error2(99.9, self.sample),
                      result_margin_error2(99.9, self.sample))
 def test_margin_error(self):
     self.assertEqual(round(margin_error2(99.9, self.sample), 1),
                      round(result_margin_error2(99.9, self.sample), 1))
Beispiel #3
0
 def me(self,probability, data):
     self.result = margin_error2(probability,data)
     return self.result