def test_normalize_info(self): ''' Test if udevdb._normalize_info does not returns nested lists that contains only one item. :return: ''' data = {'key': ['value', 'here'], 'foo': ['bar'], 'some': 'data'} assert udev._normalize_info(data) == {'foo': 'bar', 'some': 'data', 'key': ['value', 'here']}
def test_normalize_info(self): ''' Test if udevdb._normalize_info does not returns nested lists that contains only one item. :return: ''' data = {'key': ['value', 'here'], 'foo': ['bar'], 'some': 'data'} assert udev._normalize_info(data) == {'foo': 'bar', 'some': 'data', 'key': ['value', 'here']}
def test_normalize_info(self): """ Test if udevdb._normalize_info does not returns nested lists that contains only one item. :return: """ data = {"key": ["value", "here"], "foo": ["bar"], "some": "data"} assert udev._normalize_info(data) == { "foo": "bar", "some": "data", "key": ["value", "here"], }