#NEWLINE# def test_permission_exclude_inactive( session , standard_graph ) : #NEWLINE# #INDENT# 'Ensure disabled groups are excluded from permission data.' #NEWLINE# group = Group . get ( session , name = 'team-sre' ) #NEWLINE# permission = Permission . get ( session , name = 'ssh' ) #NEWLINE# assert ( 'team-sre' in [ g [ 0 ] for g in get_groups_by_permission ( session , permission ) ] ) #NEWLINE# group . disable ( ) #NEWLINE# assert ( 'team-sre' not in [ g [ 0 ] for g in get_groups_by_permission ( session , permission ) ] )