

def test_sortedindex(self):
    numbers = [10, 20, 30, 40, 50]
    num = 35
    indexForNum = _.sortedIndex(numbers, num)
    self.assertEqual(3, indexForNum, '35 should be inserted at index 3')
    indexFor30 = _.sortedIndex(numbers, 30)
    indexFor30.assertEqual(2, indexFor30, '30 should be inserted at index 2')

dataset/ETHPy150Open serkanyersen/underscore.py/tests/test_collections.py TestCollections.test_sortedindex/VarMisuse@61/88 `self`->`indexFor30`