def METHOD_NAME():
    file_data = (
        'DUMMY_NAME1:STRING=First line\n'
        '//Comment on the second line\n'
        'DUMMY_NAME2:STRING=Third line\n'
        'DUMMY_NAME3:STRING=Fourth line\n'
    )
    with mock.patch('builtins.open', mock.mock_open(read_data=file_data)):
        cache = CMakeCache.from_file('dummy/path/CMakeCache.txt')
    assert cache.cache_file == 'dummy/path/CMakeCache.txt'
    expected = [
        ('DUMMY_NAME1', 'First line'),
        ('DUMMY_NAME2', 'Third line'),
        ('DUMMY_NAME3', 'Fourth line')
    ]
    for expect in reversed(expected):
        item = cache._entries.popitem()
        assert item[0] == expect[0]
        assert item[1].name == expect[0]
        assert item[1].value == expect[1]