コード例 #1
0
ファイル: test_blind.py プロジェクト: kyleam/blind
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')]
コード例 #2
0
ファイル: test_blind.py プロジェクト: kyleam/blind
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')]
コード例 #3
0
ファイル: test_blind.py プロジェクト: kyleam/blind
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')]
コード例 #4
0
ファイル: test_blind.py プロジェクト: kyleam/blind
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')]
コード例 #5
0
ファイル: test_blind.py プロジェクト: kyleam/blind
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')]
コード例 #6
0
ファイル: test_blind.py プロジェクト: kyleam/blind
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')]