예제 #1
0
def create_user_role(keyword):
    role = RoleFactory.create()
    user_id = BaseTestCase.user_id()
    PermissionFactory.create(keyword=keyword, role=role)
    return UserRoleFactory.create(user_id=user_id, role=role), user_id