tests/mocks.py
def create_role(self, role_id):
        """
        Creates and returns a new mock role object with the given ID. The role
        is stored internally with its ID in the roles dictionary.
        
        * role_id (int) - ID number for the new role
        """
    
        role = MockRole(role_id)
        self._roles[role_id] = role
        return role

        Creates and returns a new mock role object with the given ID. The role
        is stored internally with its ID in the roles dictionary.
        
        * role_id (int) - ID number for the new role
        
Creates and returns a new mock role object with the given ID. The role
is stored internally with its ID in the roles dictionary.

role_id (int) - ID number for the new role
Creates and returns a new mock role object with the given ID . The role is stored internally with its ID in the roles dictionary . role_id ( int ) - ID number for the new role
def create_role(self, role_id):
        role = MockRole(role_id)
        self._roles[role_id] = role
        return role
def create_role ( self , role_id ) : role = MockRole ( role_id ) self . _roles [ role_id ] = role return role
Creates and returns a new mock role object with the given ID.
Creates and returns a new mock role object with the given ID .
"""
        Creates and returns a new mock role object with the given ID. The role
        is stored internally with its ID in the roles dictionary.
        
        * role_id (int) - ID number for the new role
        """
self
role_id