def METHOD_NAME(self):
    class Mock(object):
        pass
    args = [Mock, "Mock!"]
    with pytest.raises(ValueError) as excinfo:
        EntryPoint.register(*args)
    assert "must define INTERNAL_NAME" in str(excinfo.value)
    # Test successful registration.
    Mock.INTERNAL_NAME = "a name"
    EntryPoint.register(*args)
    assert Mock in EntryPoint.ENTRY_POINTS
    assert "Mock!" == EntryPoint.DISPLAY_TITLES[Mock]
    assert Mock not in EntryPoint.DEFAULT_ENABLED
    # Can't register twice.
    with pytest.raises(ValueError) as excinfo:
        EntryPoint.register(*args)
    assert "Duplicate entry point internal name: a name" in str(excinfo.value)
    EntryPoint.unregister(Mock)
    # Test successful registration as a default-enabled entry point.
    EntryPoint.register(*args, default_enabled=True)
    assert Mock in EntryPoint.DEFAULT_ENABLED
    # Can't register two different entry points with the same
    # display name.
    class Mock2(object):
        INTERNAL_NAME = "mock2"
    with pytest.raises(ValueError) as excinfo:
        EntryPoint.register(Mock2, "Mock!")
    assert "Duplicate entry point display name: Mock!" in str(excinfo.value)
    EntryPoint.unregister(Mock)
    assert Mock not in EntryPoint.DEFAULT_ENABLED