Ejemplo n.º 1
0
 def test_index_negative(self):
     s = SortedFrozenSet([1, 5, 8, 9])
     with self.assertRaises(ValueError):
         s.index(10)
Ejemplo n.º 2
0
 def test_index_positive(self):
     s = SortedFrozenSet([1, 5, 8, 9])
     self.assertEqual(s.index(5), 1)