Lines Matching refs:user_attrs
439 user_attrs = sssd_interface.GetUserAttr('usr\\001', attributes)
440 assert user_attrs.signature == 'sv'
441 assert user_attrs.variant_level == 0
443 assert len(attributes) == len(user_attrs)
444 assert sorted(attributes) == sorted(user_attrs.keys())
447 for attr in user_attrs:
448 assert user_attrs[attr].signature == 's'
449 assert user_attrs[attr].variant_level == 1
450 assert user_attrs[attr][0] == expected[attr]
468 user_attrs = sssd_interface.GetUserAttr('user1', [])
470 assert user_attrs.signature == 'sv'
471 assert user_attrs.variant_level == 0
473 # expect empty sequence; len(user_attrs) == 0
474 assert not user_attrs
482 user_attrs = sssd_interface.GetUserAttr('user1', attributes)
484 assert user_attrs.signature == 'sv'
485 assert user_attrs.variant_level == 0
487 assert len(attributes) == len(user_attrs)
488 assert sorted(attributes) == sorted(user_attrs.keys())
491 for attr in user_attrs:
492 assert user_attrs[attr].signature == 's'
493 assert user_attrs[attr].variant_level == 1
494 assert user_attrs[attr][0] == expected[attr]