@pytest.mark.parametrize("key, field, index, value, expected", [
        (('test', 'demo', 1),       # insert_integer
            "age",
            0,
            999,
         {'age': [999, 1, 2], 'name': 'name1', 'city':['Pune', 'Dehli']}),
        (('test', 'demo', 1),       # inserts string
            "city",
            0,
            "Chennai",
            {'age': [1, 2], 'name': 'name1',
             'city': ['Chennai', 'Pune', 'Dehli']}),
        (('test', 'demo', 1),       # insert unicode string
            "city",
            3,
            u"Mumbai",
            {'age': [1, 2], 'city': ['Pune', 'Dehli', None, u'Mumbai'],
             'name': 'name1'}),
        (('test', 'demo', 2),       # Insert float
            "age",
            7,
            85.12,
            {'age': [2, 3, None, None, None, None, None, 85.12],
             'city': ['Pune', 'Dehli'], 'name': 'name2'}),
        (('test', 'demo', 3),        # insert map
            "age",
            1,
            {'k1': 29},
            {'age': [3, {'k1': 29}, 4], 'city': ['Pune', 'Dehli'],
             'name': 'name3'}),
        (('test', 'demo', 1),       # insert bytearray
            "age",
            2,
            bytearray("asd;as[d'as;d", "utf-8"),
            {'age': [1, 2, bytearray(b"asd;as[d\'as;d")],
             'city': ['Pune', 'Dehli'], 'name': 'name1'}),
        (('test', 'demo', 1),      # insert boolean
            "age",
            6,
            False,
            {'age': [1, 2, None, None, None, None, 0], 'city': [
             'Pune', 'Dehli'], 'name': 'name1'}),
    ])
    def test_pos_list_insert_value(self, key, field, index, value, expected):
        self.as_connection.list_insert(key, field, index, value)

        (key, _, bins) = self.as_connection.get(key)

        assert bins == expected
Generate n colors with equally spaced hues.
dataset/ETHPy150Open aerospike/aerospike-client-python/test/new_tests/test_list_insert.py/TestListInsert.test_pos_list_insert_value--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/tree/export.py/_color_brew