'Create the assignments specified in the test plan.'

def create_assignments(self, assignment_pattern, test_data):

    test_data['initial_assignment_count'] = len(self.assignment_api.list_role_assignments())
    for assignment in assignment_pattern:
        args = {}
        for param in assignment:
            if (param == 'inherited_to_projects'):
                args[param] = assignment[param]
            else:
                (key, value) = self._convert_entity_shorthand(param, assignment, test_data)
                args[key] = value
        self.assignment_api.create_grant(**args)
    return test_data
