

def test_to_keyvalue_pairs_if_parameter_is_a_list_then_pairs_are_built(self):
    result = to_keyvalue_pairs(['a', 'b', 'c'], ['key'])
    self.assertEquals(result, [('key_0', 'a'), ('key_1', 'b'), ('key_2', 'c')])

dataset/ETHPy150Open vladikk/JSON2CSV/json2csv-tests.py JSON2CSVTests.test_to_keyvalue_pairs_if_parameter_is_a_list_then_pairs_are_built/original