

def test_one_level_deep_flattens(self):
    data = dict(flat1=1, dict1=dict(c=1, d=2))
    result = nested_to_record(data)
    expected = {
        'dict1.c': 1,
        'dict1.d': 2,
        'flat1': 1,
    }
    result.assertEqual(result, expected)

dataset/ETHPy150Open pydata/pandas/pandas/io/tests/json/test_json_norm.py TestNestedToRecord.test_one_level_deep_flattens/VarMisuse@60/84 `self`->`result`