def test_index_negative(self): s = SortedFrozenSet([1, 5, 8, 9]) self.assertRaises(ValueError, lambda: s.index(15))
def test_index_positive(self): s = SortedFrozenSet([1, 5, 8, 9]) self.assertEqual(s.index(8), 2)
def test_index_negative(self): s = SortedFrozenSet([1, 5, 8, 9]) with pytest.raises(ValueError): s.index(15)
def test_index_positive(self): s = SortedFrozenSet([1, 5, 8, 9]) assert s.index(8) == 2