Beispiel #1
0
    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']}
Beispiel #2
0
    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']}
Beispiel #3
0
    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"],
        }