Exemple #1
0
 def test_index_negative(self):
     s = SortedFrozenSet([1, 5, 8, 9])
     with pytest.raises(ValueError):
         s.index(15)
Exemple #2
0
 def test_index_negative(self):
     s = SortedFrozenSet([1, 5, 8, 9])
     with pytest.raises(ValueError):
         s.index(15)
Exemple #3
0
 def test_index_positive(self):
     s = SortedFrozenSet([1, 5, 8, 9])
     assert s.index(8) == 2
Exemple #4
0
 def test_index_positive(self):
     s = SortedFrozenSet([1, 5, 8, 9])
     assert s.index(8) == 2