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