def test_multiple_hyps(self): pivot = get_pivot([{ 'a': 0.6, 'x': 0.4 }, { 'b': 1.0 }, { 'c': 1.0, 'z': 3.0 }]) self.assertEqual(pivot, ['a', 'b', 'z'])
def test_single_hypothese(self): pivot = get_pivot([{'a': 1.0}, {'b': 1.0}, {'c': 1.0}]) self.assertEqual(pivot, ['a', 'b', 'c'])
def test_empty_cn(self): pivot = get_pivot([]) self.assertEqual(pivot, [])