'Test that you can filter by role even if roles are implied.'

def test_role_assignments_implied_roles_filtered_by_role(self):

    test_plan = {'entities': {'domains': {'users': 1, 'projects': 2}, 'roles': 4}, 'implied_roles': [{'role': 0, 'implied_roles': 1}, {'role': 1, 'implied_roles': [2, 3]}], 'assignments': [{'user': 0, 'role': 0, 'project': 0}, {'user': 0, 'role': 3, 'project': 1}], 'tests': [{'params': {'role': 3, 'effective': True}, 'results': [{'user': 0, 'role': 3, 'project': 0, 'indirect': {'role': 1}}, {'user': 0, 'role': 3, 'project': 1}]}]}
    self.execute_assignment_plan(test_plan)
