Example #1
0
def test_name_by_random_fours_two_files_with_path(shuffle):
    files = ['/path/one.txt', '/path/two.csv']
    result = list(blind.name_by_random_fours(files))
    assert result == [('/path/one.txt', '/path/aaaa.txt'),
                      ('/path/two.csv', '/path/bbbb.csv')]
Example #2
0
def test_name_by_random_fours_two_files(shuffle):
    files = ['one.txt', 'two.csv']
    result = list(blind.name_by_random_fours(files))
    assert result == [('one.txt', 'aaaa.txt'), ('two.csv', 'bbbb.csv')]
Example #3
0
def test_name_by_random_fours_one_file(shuffle):
    files = ['one.txt']
    result = list(blind.name_by_random_fours(files))
    assert result == [('one.txt', 'aaaa.txt')]
Example #4
0
def test_name_by_random_fours_two_files_with_path(shuffle):
    files = ['/path/one.txt', '/path/two.csv']
    result = list(blind.name_by_random_fours(files))
    assert result == [('/path/one.txt', '/path/aaaa.txt'),
                      ('/path/two.csv', '/path/bbbb.csv')]
Example #5
0
def test_name_by_random_fours_two_files(shuffle):
    files = ['one.txt', 'two.csv']
    result = list(blind.name_by_random_fours(files))
    assert result == [('one.txt', 'aaaa.txt'), ('two.csv', 'bbbb.csv')]
Example #6
0
def test_name_by_random_fours_one_file(shuffle):
    files = ['one.txt']
    result = list(blind.name_by_random_fours(files))
    assert result == [('one.txt', 'aaaa.txt')]