def test_one_non_missing(self): self.assertEqual(qc.missing_mean([None, 7.3]), 7.3) self.assertEqual(qc.missing_mean([994.2, None]), 994.2)
def test_all_non_missing(self): self.assertEqual(qc.missing_mean([6.0, 1.0]), 3.5)
def test_all_missing(self): self.assertEqual(qc.missing_mean([None, None]), None)