コード例 #1
0
def test_create_login_file_path():
    value = {
        'type': 'path',
        'src': 'genome_paired_reads.fq.gz',
        'dst': TMP_FILE_NAME
    }
    login.create_login_file(TMP_DIR, value)
    hlpr.assert_file_not_empty(TMP_PATH)
コード例 #2
0
def test_create_login_file_literal():
    value = {'type': 'literal', 'src': 'literal_string', 'dst': TMP_FILE_NAME}
    login.create_login_file(TMP_DIR, value)
    hlpr.assert_file_contents_equal(TMP_PATH, 'literal_string')
コード例 #3
0
def test_create_login_file_path():
    value = {"type": "path", "src": "genome_paired_reads.fq.gz", "dst": TMP_FILE_NAME}
    login.create_login_file(TMP_DIR, value)
    hlpr.assert_file_not_empty(TMP_PATH)
コード例 #4
0
def test_create_login_file_literal():
    value = {"type": "literal", "src": "literal_string", "dst": TMP_FILE_NAME}
    login.create_login_file(TMP_DIR, value)
    hlpr.assert_file_contents_equal(TMP_PATH, "literal_string")
コード例 #5
0
def test_create_login_file_path():
    value = {'type': 'path', 'src': 'short_read_assembler/genome_paired_reads.fq.gz', 'dst': TMP_FILE_NAME}
    login.create_login_file(TMP_DIR, value)
    hlpr.assert_file_not_empty(TMP_PATH)
コード例 #6
0
def test_create_login_file_literal():
    value = {'type': 'literal', 'src': 'literal_string', 'dst': TMP_FILE_NAME}
    login.create_login_file(TMP_DIR, value)
    hlpr.assert_file_contents_equal(TMP_PATH, 'literal_string')