Esempio n. 1
0
 def test_index_negative(self):
     s = SortedSet([1, 5, 8, 9])
     with self.assertRaises(ValueError):
         s.index(15, )
Esempio n. 2
0
 def test_index_positive(self):
     s = SortedSet([1, 5, 8, 9])
     self.assertEqual(s.index(8, ), 2)