def test_request_index_none(self): request_q = [ [1, 2, 3], [2, 4, 6], [3, 6, 9] ] index = utils.request_index(request_q, 99) assert index == len(request_q)
def test_request_index_1(self): request_q = [ [1, 2, 3], [2, 4, 6], [3, 6, 9] ] index = utils.request_index(request_q, 2) assert index == 1
def test_request_index_none(self): request_q = [[1, 2, 3], [2, 4, 6], [3, 6, 9]] index = utils.request_index(request_q, 99) assert index == len(request_q)
def test_request_index_1(self): request_q = [[1, 2, 3], [2, 4, 6], [3, 6, 9]] index = utils.request_index(request_q, 2) assert index == 1