示例#1
0
def test_get_filetype_err():
    assert get_filetype("/a/b.conf") == None
示例#2
0
def test_get_filetype(tdata1):
    filename, config_class, fmt = tdata1
    assert get_filetype(filename) == FileType(filepath=filename, config_class=config_class, fmt=fmt)