def test_status(self): """Test status values.""" p = [0.04, 0.8, 0.81, 0.01, 0.2, 0.9, 0.03, 0.95] status = rejector(p, 0.1)["status"] self.assertEqual( status, [False, False, False, True, False, False, False, False], )
def get_metric_sample_data_summary(): p_values = get_sample_p_values()['p_values'] results = rejector( p_values ) return results
def test_count(self): """Test count value.""" p = [0.04, 0.8, 0.81, 0.01, 0.2, 0.9, 0.03, 0.95] count = rejector(p, 0.1)["count"] self.assertEqual(count, 1)