components/python/xattr/patches/test.patch
branchs11u3-sru
changeset 7853 87236a3c36b4
parent 3114 f0074f08c8db
equal deleted inserted replaced
7817:c02cd3066a7c 7853:87236a3c36b4
    27 +        d = {}
    27 +        d = {}
    28 +        if sys.platform == 'sunos5' and 'SUNWattr_ro' in x:
    28 +        if sys.platform == 'sunos5' and 'SUNWattr_ro' in x:
    29 +            d['SUNWattr_ro'] = x['SUNWattr_ro']
    29 +            d['SUNWattr_ro'] = x['SUNWattr_ro']
    30 +            d['SUNWattr_rw'] = x['SUNWattr_rw']
    30 +            d['SUNWattr_rw'] = x['SUNWattr_rw']
    31 +
    31 +
    32 +        self.assertEqual(x.keys(), d.keys())
    32 +        self.assertEqual(sorted(x.keys()), sorted(d.keys()))
    33 +        self.assertEqual(x.list(), d.keys())
    33 +        self.assertEqual(sorted(x.list()), sorted(d.keys()))
    34 +        self.assertEqual(dict(x), d)
    34 +        self.assertEqual(dict(x), d)
    35 +
    35 +
    36          x['user.sopal'] = b'foo'
    36          x['user.sopal'] = b'foo'
    37          x['user.sop.foo'] = b'bar'
    37          x['user.sop.foo'] = b'bar'
    38          x[u'user.\N{SNOWMAN}'] = b'not a snowman'
    38          x[u'user.\N{SNOWMAN}'] = b'not a snowman'