<filename>conlo/tests/test_config_file.py
import pytest


def test_config_file(users):
    assert not users._loaded
    users._load()
    assert users._loaded
    assert users.get('John').name == 'John'


@pytest.mark.parametrize(
    'path, expected_folder_path, expected_file_name',
    (
        ('path\\to\\the\\config\\file.txt', 'path\\to\\the\\config', 'file.txt'),
        ('file.txt', '', 'file.txt'),
        ('config\\file', 'config', 'file'),
    )
)
def test_config_file_split_folder_and_file(users, path, expected_folder_path, expected_file_name):
    folder_path, file_name = users.split_folder_and_file(path)
    assert folder_path == expected_folder_path
    assert file_name == expected_file_name

<filename>conlo/tests/test_config_file.py
import pytest


def test_config_file(users):
    assert not users._loaded
    users._load()
    assert users._loaded
    assert users.get('John').name == 'John'


@pytest.mark.parametrize(
    'path, expected_folder_path, expected_file_name',
    (
        ('path\\to\\the\\config\\file.txt', 'path\\to\\the\\config', 'file.txt'),
        ('file.txt', '', 'file.txt'),
        ('config\\file', 'config', 'file'),
    )
)
def test_config_file_split_folder_and_file(users, path, expected_folder_path, expected_file_name):
    folder_path, file_name = users.split_folder_and_file(path)
    assert folder_path == expected_folder_path
    assert file_name == expected_file_name
