コード例 #1
0
 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)
コード例 #2
0
 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
コード例 #3
0
 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)
コード例 #4
0
 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