

def test_force_list_basic(self):
    xml = '\n        <servers>\n          <server>\n            <name>server1</name>\n            <os>os1</os>\n          </server>\n        </servers>\n        '
    expectedResult = {
        'servers': {
            'server': [{
                'name': 'server1',
                'os': 'os1',
            }],
        },
    }
    self.assertEqual(parse(self, force_list=('server',)), expectedResult)

dataset/ETHPy150Open martinblech/xmltodict/tests/test_xmltodict.py XMLToDictTestCase.test_force_list_basic/VarMisuse@52/115 `xml`->`self`