

def test_skip_whitespace(self):
    xml = '\n        <root>\n\n\n          <emptya>           </emptya>\n          <emptyb attr="attrvalue">\n\n\n          </emptyb>\n          <value>hello</value>\n        </root>\n        '
    self.assertEqual(parse(self), {
        'root': {
            'emptya': None,
            'emptyb': {
                '@attr': 'attrvalue',
            },
            'value': 'hello',
        },
    })

dataset/ETHPy150Open martinblech/xmltodict/tests/test_xmltodict.py XMLToDictTestCase.test_skip_whitespace/VarMisuse@20/82 `xml`->`self`