from unittest.mock import Mock


def build_mock_object(obj_id):
    """ Build a mock object with the passed id"""
    mock_object = Mock()
    object_config = {
        'pk': obj_id,
        'name': f"object {obj_id}"
    }
    mock_object.configure_mock(**object_config)
    return mock_object